@@ -22,14 +22,23 @@ use std::path::{Path, PathBuf};
usestd::{fs,io};
pubusetoml::Value;
/// Dependencies. The keys in this map may not be crate names if `package` is used, but may be feature names if they're optional.
/// Dependencies. The keys in this map are not always crate names, this can be overriden by the `package` field, and there may be multiple copies of the same crate.
/// Optional dependencies may create implicit features, see the [`features`] module for dealing with this.
pubtypeDepsSet=BTreeMap<String,Dependency>;
/// Config target (see [`parse_cfg`](https://lib.rs/parse_cfg) crate) + deps for the target.
pubtypeTargetDepsSet=BTreeMap<String,Target>;
/// `[features]` section. `default` is special.
/// The `[features]` section. This set may be incomplete!
///
/// The `default` is special, and there may be more features
/// Finds all features and dependencies that this feature enables, recursively and exhaustively
///
/// The first HashMap is features by their key, the second is dependencies by their key
/// The first `HashMap` is features by their key, the second is dependencies by their key. It includes only dependencies changed by the features, not all crate dependencies.