mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-28 06:23:08 -08:00
feat: add preliminary miri support
- Adds a devShell with Miri - Marks some of the tests which Miri cannot execute as ignored for Miri Signed-off-by: wucke13 <wucke13+github@gmail.com>
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -186,6 +186,25 @@
|
||||
rustfmt
|
||||
];
|
||||
};
|
||||
# a devshell to hunt unsafe `unsafe` in the code
|
||||
devShells.miri = pkgs.mkShell {
|
||||
# inputsFrom = [ self.packages.${system}.rosenpass ];
|
||||
nativeBuildInputs = with pkgs; [
|
||||
((rust-bin.selectLatestNightlyWith (toolchain: toolchain.default)).override {
|
||||
extensions = [
|
||||
"rust-analysis"
|
||||
"rust-src"
|
||||
"miri-preview"
|
||||
];
|
||||
})
|
||||
pkgs.cmake
|
||||
pkgs.rustPlatform.bindgenHook
|
||||
];
|
||||
# Run this to find unsafe `unsafe`:
|
||||
# MIRIFLAGS="-Zmiri-disable-isolation" cargo miri test --no-fail-fast --lib --bins --tests
|
||||
#
|
||||
# - Some test failure is expected.
|
||||
};
|
||||
|
||||
checks =
|
||||
import ./tests/integration/integration-checks.nix {
|
||||
|
||||
Reference in New Issue
Block a user