|
|
|
@ -25,7 +25,7 @@ let version_ = lib.splitString "-" crateVersion; |
|
|
|
|
version = lib.splitVersion (lib.head version_); |
|
|
|
|
rustcOpts = lib.foldl' (opts: opt: opts + " " + opt) |
|
|
|
|
(if release then "-C opt-level=3" else "-C debuginfo=2") |
|
|
|
|
(["-C codegen-units=${codegenUnits}"] ++ extraRustcOptsForBuildRs); |
|
|
|
|
(["-C codegen-units=${toString codegenUnits}"] ++ extraRustcOptsForBuildRs); |
|
|
|
|
buildDeps = mkRustcDepArgs buildDependencies crateRenames; |
|
|
|
|
authors = lib.concatStringsSep ":" crateAuthors; |
|
|
|
|
optLevel = if release then 3 else 0; |
|
|
|
|