Put encoding_rs/simd-accel behind a nightly feature

This commit is contained in:
Luke Street 2023-09-08 17:17:31 -04:00
parent 808280cb10
commit db4f9af254
2 changed files with 8 additions and 4 deletions

View File

@ -25,9 +25,9 @@ jobs:
with: with:
components: clippy components: clippy
- name: Cargo check - name: Cargo check
run: cargo check --all-features --all-targets run: cargo check --features debug --all-targets
- name: Cargo clippy - name: Cargo clippy
run: cargo clippy --all-features --all-targets run: cargo clippy --features debug --all-targets
fmt: fmt:
name: Format name: Format
@ -73,7 +73,7 @@ jobs:
components: rust-src components: rust-src
targets: ${{ matrix.target }} targets: ${{ matrix.target }}
- name: Cargo build - 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 - name: Upload artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:

View File

@ -19,10 +19,14 @@ panic = "abort"
[features] [features]
debug = [] debug = []
nightly = [
"encoding_rs/simd-accel",
"encoding_rs/fast-kanji-encode",
]
[dependencies] [dependencies]
anyhow = "1.0.72" 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"] } memexec = { version = "0.2.0", features = ["hook"] }
rustc-hash = "1.1.0" rustc-hash = "1.1.0"