Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.6.0
9.2.0
11 changes: 11 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,15 @@ jobs:
cmake --build build --parallel
cd build
ctest --output-on-failure --parallel 2

test_bazel:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Build Bazel test project
run: |
cd examples/build_systems/bazel
bazel build --cxxopt=-std=c++20 //:main
# LINT.ThenChange(//depot/copy.bara.sky)
3 changes: 2 additions & 1 deletion examples/build_systems/bazel/rust_lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
use base64::alphabet::Alphabet;
use base64::engine::general_purpose::PAD;
use base64::engine::{Alphabet, GeneralPurpose};
use base64::engine::GeneralPurpose;
use std::path::{Path, PathBuf};

pub fn add(left: u64, right: u64) -> u64 {
Expand Down
1 change: 0 additions & 1 deletion rs_bindings_from_cc/bazel_support/compile_rust.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def compile_rust(ctx, attr, src, extra_srcs, deps, crate_name, include_coverage,
compile_data_targets = depset([]),
owner = ctx.label,
),
extra_named_deps = extra_named_deps,
rust_flags = remapped_flags,
output_hash = output_hash,
include_coverage = include_coverage,
Expand Down
1 change: 1 addition & 0 deletions support/rs_std/erased_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//! Note that this crate is intended to be used as a Crubit support library for cc_bindings_from_rs,
//! and not intended for direct use by Rust library authors.

use std::future::Future;
use std::pin::Pin;
use std::ptr;
use std::task::{Context, Poll};
Expand Down
Loading