1 unstable release
0.1.0 | Jul 25, 2021 |
---|
#37 in #expand
12KB
172 lines
dep-expand
Expand cargo dependencies in build.rs
Example
Expand the entire dependency
let expander = Expander::default();
// get the expanded output
let output = expander.expand("<a dependency in Cargo.toml>").unwrap();
Expand only a specific module or type or function
let expander = Expander::default();
// get the expanded output of the given module
let output = expander
.expand_path(
"<a dependency in Cargo.toml>",
"path::to::module".parse().unwrap(),
)
.unwrap();
References
Licensed under either of these:
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
Dependencies
~4–13MB
~183K SLoC