Cargo features can control whether to send metadata or not. in section [package.metadata.inwelling.{common ancestor}] , a value of feature = blah means that the metadata will be collected by inwelling if and only if blah feature is enabled. See beta crate in examples for more.
Cargo features can control whether to send metadata or not. in section [package.metadata.inwelling-{common ancestor}] , a value of feature = blah means that the metadata will be collected by inwelling if and only if blah feature is enabled. See beta crate in examples for more. Note: '.' has been replaced by '-' in section names.
The inwelling crate opens up the possibility of reverse dependencies and some kind of global analysis. See examples: clib and structx for more.
pub struct Opts {
/// build.rs using inwelling() will re-run if downstream crates' Cargo.toml files have been changed.
pub watch_manifest : bool,
/// build.rs using inwelling() will re-run if downstream crates' .rs files have been changed.
pub watch_rs_files : bool,
/// if this flag is true, inwelling()'s returning value will contain .rs file paths.
pub dump_rs_paths : bool,
}
The definition of struct Section has been changed.
pub struct Section {
// Unchanged fields omitted.
/// .rs files under src/, examples/ and tests/ directories if dump_rs_file is
/// true, otherwise `None`.
pub rs_paths : Option<Vec<PathBuf>>,
}
And its downstream crates have been updated to utilize this new version of inwelling as their dependencies:
clib, generating Rust bindings of C libraries and put them in the whole namespace clib::*.
structx, simulating anonymous struct and named arguments in Rust. Non-local "anonymous struct" type provided.