| Crates.io | dep-expand |
| lib.rs | dep-expand |
| version | 0.1.0 |
| created_at | 2021-07-25 14:46:48.552042+00 |
| updated_at | 2021-07-25 14:46:48.552042+00 |
| description | Expand cargo dependencies during build |
| homepage | https://github.com/mattsse/dep-expand |
| repository | https://github.com/mattsse/dep-expand |
| max_upload_size | |
| id | 427091 |
| size | 25,964 |
Expand cargo dependencies in build.rs
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();
Licensed under either of these: