We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da678a7 commit 134aeffCopy full SHA for 134aeff
src/cargo/core/compiler/unit_dependencies.rs
@@ -382,6 +382,11 @@ fn compute_deps<'a, 'cfg>(
382
///
383
/// The `unit` provided must represent an execution of a build script, and
384
/// the returned set of units must all be run before `unit` is run.
385
+///
386
+/// `dep_kind` is the dependency kind of the package this build script is
387
+/// being built for. This ensures that the build script is built with the same
388
+/// features the package is built with (if the build script has cfg!()
389
+/// checks).
390
fn compute_deps_custom_build<'a, 'cfg>(
391
unit: &Unit<'a>,
392
dep_kind: DepKind,
0 commit comments