napi: fix build error in cargo-auditable#713
napi: fix build error in cargo-auditable#713JohnRTitor wants to merge 1 commit intoparcel-bundler:masterfrom
Conversation
|
Should close #702 |
Additionally patch ./napi/Cargo.toml to allow building lightningcss-napi parcel-bundler/lightningcss#713 parcel-bundler/lightningcss#702
|
Why would the dep for crossbeam-channel and rayon be different here? Not sure I understand the issue here. |
|
I am guessing This behaviour is not observed in |
|
crossbeam-channel is also optional though |
|
I am not sure, something must have changed between the bump to 1.24.1 v1.24.0...v1.24.1 |
<system-color> panic regression still persists parcel-bundler/lightningcss#685 patch unmerged for napi & cargo auditable parcel-bundler/lightningcss#713
|
@devongovett is there a reason to hold off this PR, or is it blocked on something? |
|
Mainly that I don't understand the problem. AFAICT it is correct: https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies Why do you think this is wrong? I don't know what |
|
cargo-auditable is a tool to store the exact versions of dependencies in rust binaries and makes it easier/possible to audit the dependency tree of rust binaries. It is a drop-in replacement of cargo. Mainly this lets easier identification of vulnerabilities (CVEs). Nixpkgs by default uses cargo auditable to build rust binaries. Stricter checks like these are implemented by cargo-auditable. And hence this PR. cargo auditable is compatible with cargo itself, so this change won't affect builds with cargo. |
As reported #702
when trying to build via
cargo auditable build --release --lib --bin=lightningcss --features="cli"build fails with the following error.This patch fixes the bug and the build succeeds on cargo auditable.