Function node_template_release::update_git_dependencies
source · pub(crate) fn update_git_dependencies<F: Copy + Fn(&str) -> bool>(
cargo_toml: &mut Document,
path_filter: F,
) -> HashMap<String, HashMap<String, Dependency>>
Expand description
Rewrites git dependencies:
- inserts
workspace = true
; - removes
path
; - removes
version
; - removes
default-features
- and returns the dependencies that were rewritten.