Skip to content
Snippets Groups Projects
Commit 76ab8ca6 authored by Charles Hall's avatar Charles Hall Committed by 🥺
Browse files

allow disabling default features via override

parent 67f95537
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@
, stdenv
# Options
, default_features ? true
, features ? []
, profile ? "release"
}:
......@@ -57,6 +58,9 @@ craneLib.buildPackage rec {
++ lib.optionals stdenv.isDarwin [ libiconv ];
cargoExtraArgs = ""
+ lib.optionalString
(!default_features)
"--no-default-features "
+ lib.optionalString
(features != [])
"--features " + (builtins.concatStringsSep "," features);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment