Crates.io | dep-tree |
lib.rs | dep-tree |
version | |
source | src |
created_at | 2024-11-21 12:16:10.513816 |
updated_at | 2024-11-21 12:16:10.513816 |
description | Dependency tree structure for building dependency requirements |
homepage | |
repository | https://github.com/ay0ks/dep-tree |
max_upload_size | |
id | 1456075 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Dependency tree structure for building dependency requirements
Example:
use dep_tree::DepTreeBuilder;
fn main() {
let deps = DepTreeBuilder::new()
.with_dep((1, 1), vec![(1, 2), (1, 3)])
.with_dep((1, 2), vec![])
.with_dep((1, 3), vec![(1, 3)]) // Self-dependency
.with_dep((2, 0), vec![(2, 1)])
.with_dep((2, 1), vec![(2, 2)]) // Circular dependency
.with_dep((2, 2), vec![(2, 1)])
.with_dep((2, 3), vec![])
.build();
println!("{}", deps.unwrap_or_else(|e| panic!("{}", e.to_string())));
}