As the title says builds on nix fail due to build.rs using conditional includes.
When building with Nix, os_info::get().version() returns Unknown which is cannot be deserialized to Sematic resulting in missing includes and build failues.
Original comment
Possible solution:
Using feature flags would be ideal and using the current method (dynamic builds) as a fallback.
Also sidenote:
Shouldn't those lines contain c_src only 1 time?
|
println!("cargo:rerun-if-changed=c_src/c_src/driverkit.hpp"); |
|
println!("cargo:rerun-if-changed=c_src/c_src/driverkit.cpp"); |
As the title says builds on nix fail due to
build.rsusing conditional includes.When building with Nix,
os_info::get().version()returnsUnknownwhich is cannot be deserialized toSematicresulting in missing includes and build failues.Original comment
Possible solution:
Using feature flags would be ideal and using the current method (dynamic builds) as a fallback.
Also sidenote:
Shouldn't those lines contain
c_srconly 1 time?driverkit/build.rs
Lines 31 to 32 in 1b552cc