1 unstable release

0.1.0 Jul 25, 2021

#1550 in Development tools

MIT/Apache

12KB
172 lines

dep-expand

github crates.io docs.rs build status

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:

Dependencies

~3–14MB
~161K SLoC