new_unit_dep_with_profile in cargo::core::compiler::unit_dependencies - Rust
Description: API documentation for the Rust `new_unit_dep_with_profile` fn in crate `cargo`.

Skip to main content

## new_unit_dep_with_profile

# Function new_unit_dep_with_profile

Source

    fn new_unit_dep_with_profile(
        state: &State<'_, '_>,
        parent: &Unit,
        pkg: &Package,
        target: &Target,
        manifest_deps: Option<Vec<Dependency>>,
        unit_for: UnitFor,
        kind: CompileKind,
        mode: CompileMode,
        profile: Profile,
        artifact: Option<&Artifact>,
    ) -> CargoResult<UnitDep>