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
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions examples/crate_universe/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ build --nolegacy_external_runfiles
# https://github.com/bazelbuild/bazel/issues/23043.
build --incompatible_autoload_externally=

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Bzlmod
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions extensions/bindgen/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions extensions/mdbook/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions extensions/prost/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions extensions/protobuf/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
3 changes: 3 additions & 0 deletions extensions/wasm_bindgen/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ coverage --experimental_fetch_all_coverage_outputs
# https://bazel.build/reference/command-line-reference#flag--experimental_cc_shared_library
common --experimental_cc_shared_library

# Disable network access in sandboxes by default.
build --sandbox_default_allow_network=false

###############################################################################
## Unique configuration groups
###############################################################################
Expand Down
1 change: 1 addition & 0 deletions ffi/rs/allocator_library/empty.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions ffi/rs/global_allocator_library/empty.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ fn __rust_alloc_error_handler(size: usize, align: usize) {
}
}


// New feature as of https://github.com/rust-lang/rust/pull/88098.
// This symbol is normally emitted by rustc. 0 means OOMs should abort, 1 means OOMs should panic.
#[linkage = "weak"]
Expand Down
5 changes: 4 additions & 1 deletion test/cargo_build_script/build_script_env_files/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
fn main() {
println!("cargo:rustc-env=FROM_BUILD_SCRIPT={}", std::env::var("GREETING").unwrap());
println!(
"cargo:rustc-env=FROM_BUILD_SCRIPT={}",
std::env::var("GREETING").unwrap()
);
}
3 changes: 2 additions & 1 deletion test/cargo_build_script/tools_exec/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ fn main() {
for env_var in &["CARGO", "CC", "CXX", "LD", "RUSTC"] {
let path = std::env::var(env_var)
.unwrap_or_else(|err| panic!("Error getting {}: {}", env_var, err));
std::process::Command::new(&path).status()
std::process::Command::new(&path)
.status()
.unwrap_or_else(|err| panic!("Error executing {}: {}", path, err));
}

Expand Down