mirror of
https://github.com/NexVeridian/ark-invest-api-rust.git
synced 2025-09-02 01:49:11 +00:00
fix: cranelift
This commit is contained in:
parent
531af211bf
commit
300c06d48b
7 changed files with 378 additions and 252 deletions
16
flake.nix
16
flake.nix
|
@ -44,7 +44,6 @@
|
|||
fpc.rustc
|
||||
fpc.clippy
|
||||
fpc.rust-src
|
||||
fpc.rustc
|
||||
fpc.rustfmt
|
||||
fpc.rustc-codegen-cranelift-preview
|
||||
])
|
||||
|
@ -64,20 +63,13 @@
|
|||
++ lib.optionals pkgs.stdenv.isDarwin [
|
||||
# Additional darwin specific inputs can be set here
|
||||
pkgs.libiconv
|
||||
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
|
||||
];
|
||||
|
||||
# Additional environment variables can be set directly
|
||||
# MY_CUSTOM_VAR = "some value";
|
||||
};
|
||||
|
||||
craneLibLLvmTools = craneLib.overrideToolchain (
|
||||
fenix.packages.${system}.complete.withComponents [
|
||||
"cargo"
|
||||
"llvm-tools"
|
||||
"rustc"
|
||||
]
|
||||
);
|
||||
|
||||
# Build *just* the cargo dependencies, so we can reuse
|
||||
# all of that work (e.g. via cachix) when running in CI
|
||||
cargoArtifacts = craneLib.buildDepsOnly commonArgs;
|
||||
|
@ -119,7 +111,10 @@
|
|||
commonArgs
|
||||
// {
|
||||
inherit cargoArtifacts;
|
||||
cargoClippyExtraArgs = "--all-targets -- --deny warnings";
|
||||
cargoClippyExtraArgs = ''
|
||||
--all --all-targets -- --deny warnings -W clippy::nursery -W rust-2018-idioms \
|
||||
-A clippy::future_not_send -A clippy::option_if_let_else -A clippy::or_fun_call
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -151,6 +146,7 @@
|
|||
inherit cargoArtifacts;
|
||||
partitions = 1;
|
||||
partitionType = "count";
|
||||
cargoExtraArgs = "--no-tests pass";
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue