-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
A-build-dependenciesArea: [build-dependencies]Area: [build-dependencies]A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
I am trying to depend on the log crate for my rust.ko project, but log is already in use in bindgen, one of my build dependencies. bindgen uses log with the use_std feature, which is totally fine as that's running normally. However, when I add log to be build with default-features = false for the kernel module, which cannot use std, I get errors where cargo tries to build, as log tries to find std.
build transcript:
https://gist.github.com/tbelaire/a98527cf5d946e7c2fd4823dd16126a6
Cargo.lock:
https://gist.github.com/tbelaire/f0f89e8a21f9ce5498df07b6ec8e3a0c
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-build-dependenciesArea: [build-dependencies]Area: [build-dependencies]A-dependency-resolutionArea: dependency resolution and the resolverArea: dependency resolution and the resolverA-featuresArea: features — conditional compilationArea: features — conditional compilationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`