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>