Lines Matching full:cargo
1 {{#title Cargo-based setup — Rust ♡ C++}}
2 # Cargo-based builds
5 Cargo into a quite usable build system for C++ projects published as a
11 CXX's integration with Cargo is handled through the [cxx-build] crate.
16 ## Cargo.toml
44 println!("cargo:rerun-if-changed=src/main.rs");
45 println!("cargo:rerun-if-changed=src/demo.cc");
46 println!("cargo:rerun-if-changed=include/demo.h");
50 The `rerun-if-changed` lines are optional but make it so that Cargo does not
52 the previous Cargo build. By default without any `rerun-if-changed`, Cargo will
56 GitHub repo, which maintains a working Cargo-based setup for the blobstore
65 Your crate name is determined by the `name` entry in Cargo.toml.
68 file `path/to/header.h` relative to Cargo.toml, that file will be includable as:
126 contained as `.h` files in their Cargo package, as well as CXX-generated ones.
141 dependency's Cargo.toml manifest contains a `links` key. If not, its headers
143 manifest key][links]* in the Cargo reference.
145 [links]: https://doc.rust-lang.org/cargo/reference/build-scripts.html#the-links-manifest-key
171 itself in Cargo.toml. See [*the `links` manifest key*][links]. The reason is
172 that Cargo imposes no ordering on the execution of build scripts without a
248 for itself in Cargo.toml.
289 are guaranteed to be unique identifiers by Cargo.
292 itself in Cargo.toml.