Skip to content

Commit

Permalink
add the feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Lokathor committed Jan 2, 2025
1 parent 659e6c1 commit d0d8653
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Test non nightly
if: matrix.rust != '1.47.0' && matrix.rust != 'nightly'
run: |
cargo test --features=alloc,std,grab_spare_slice
cargo test --features=alloc,std,grab_spare_slice,latest_stable_rust
- name: Test on Nightly with All Features
if: matrix.rust == 'nightly'
run: |
Expand Down
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ rustc_1_57 = ["rustc_1_55"]
# add retain_mut function to TinyVec
rustc_1_61 = ["rustc_1_57"]

# We're done with per-version featuring, this feature opts in to all the
# abilities of the latest release of Stable rust, and we don't need a million
# features forever now.
latest_stable_rust = ["rustc_1_61"]

# allow use of nightly feature `slice_partition_dedup`,
# will become useless once that is stabilized:
# https://github.com/rust-lang/rust/issues/54279
Expand All @@ -67,11 +72,11 @@ experimental_write_impl = []
real_blackbox = ["criterion/real_blackbox"]

[package.metadata.docs.rs]
features = ["alloc", "std", "grab_spare_slice", "rustc_1_55", "serde"]
rustdoc-args = ["--cfg","docs_rs"]
features = ["alloc", "std", "grab_spare_slice", "latest_stable_rust", "serde"]
rustdoc-args = ["--cfg", "docs_rs"]

[package.metadata.playground]
features = ["alloc", "std", "grab_spare_slice", "rustc_1_55", "serde"]
features = ["alloc", "std", "grab_spare_slice", "latest_stable_rust", "serde"]

[profile.bench]
debug = 2
Expand Down

0 comments on commit d0d8653

Please sign in to comment.