From d25cc7cd252d8b46b6433dfa626c263d93920bc6 Mon Sep 17 00:00:00 2001 From: Rouven Spreckels Date: Thu, 13 Jun 2024 08:43:05 +0200 Subject: [PATCH] Fix Miri. --- .github/workflows/build.yml | 2 +- Cargo.toml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 009c26d..9d1b57c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,4 +60,4 @@ jobs: - name: fmt run: cargo fmt --all --check - name: miri - run: cargo miri test + run: cargo miri test --no-default-features diff --git a/Cargo.toml b/Cargo.toml index cb7754a..fc38bc2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ categories = ["data-structures", "science"] [dependencies] ndarray = "0.15.6" -ndarray-slice = "0.3.1" +ndarray-slice = { version = "0.3.1", default-features = false, features = ["std"] } ordered-float = "4.2.0" num-integer = "0.1.46" num-traits = "0.2.19" @@ -28,6 +28,7 @@ quickcheck = { version = "1.0.3", default-features = false } quickcheck_macros = "1.0.0" [features] +default = ["ndarray-slice/stacker"] rayon = ["dep:rayon", "ndarray-slice/rayon", "ndarray/rayon"] [[bench]]