1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-24 01:36:44 +02:00

Update to Rust 2024 edition. (#2658)

This commit is contained in:
Andrew Walbran
2025-05-23 19:03:03 +01:00
committed by GitHub
parent db47709e87
commit fc6e5c7526
83 changed files with 150 additions and 149 deletions

View File

@ -1,6 +1,7 @@
fn main() {
// Find target directory, either from CARGO_TARGET_DIR or in-tree if unset.
let mut src_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
let mut src_dir =
std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
src_dir.push("/cxxbridge/demo/src");
cxx_build::bridge("src/main.rs")