make it easy to configure cargo profiles from nix

This way you can easily build in debug mode with Nix.
merge-requests/638/head
Charles Hall 2 months ago committed by Matthias Ahouansou
parent d796fe7cd3
commit 55259329a3
No known key found for this signature in database

@ -10,6 +10,7 @@
# Options (keep sorted)
, default-features ? true
, features ? []
, profile ? "release"
}:
let
@ -73,6 +74,8 @@ craneLib.buildPackage rec {
pkgsBuildHost.rustPlatform.bindgenHook
];
CARGO_PROFILE = profile;
inherit env;
passthru = {

Loading…
Cancel
Save