dep-expand

Crates.iodep-expand
lib.rsdep-expand
version0.1.0
sourcesrc
created_at2021-07-25 14:46:48.552042
updated_at2021-07-25 14:46:48.552042
descriptionExpand cargo dependencies during build
homepagehttps://github.com/mattsse/dep-expand
repositoryhttps://github.com/mattsse/dep-expand
max_upload_size
id427091
size25,964
Matthias Seitz (mattsse)

documentation

README

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:

Commit count: 6

cargo fmt