From db4f9af254a94518f30f7779e4e65262ce460909 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 8 Sep 2023 17:17:31 -0400 Subject: [PATCH] Put encoding_rs/simd-accel behind a nightly feature --- .github/workflows/build.yml | 6 +++--- Cargo.toml | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 578ad8d..3e889d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,9 +25,9 @@ jobs: with: components: clippy - name: Cargo check - run: cargo check --all-features --all-targets + run: cargo check --features debug --all-targets - name: Cargo clippy - run: cargo clippy --all-features --all-targets + run: cargo clippy --features debug --all-targets fmt: name: Format @@ -73,7 +73,7 @@ jobs: components: rust-src targets: ${{ matrix.target }} - name: Cargo build - run: cargo ${{ matrix.build }} --release --all-features --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} -Z build-std=std,panic_abort + run: cargo ${{ matrix.build }} --release --features nightly --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} -Z build-std=std,panic_abort - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/Cargo.toml b/Cargo.toml index 80e89b2..c7bc446 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,10 +19,14 @@ panic = "abort" [features] debug = [] +nightly = [ + "encoding_rs/simd-accel", + "encoding_rs/fast-kanji-encode", +] [dependencies] anyhow = "1.0.72" -encoding_rs = { version = "0.8.32", features = ["simd-accel", "fast-kanji-encode"] } +encoding_rs = "0.8.32" memexec = { version = "0.2.0", features = ["hook"] } rustc-hash = "1.1.0"