Skip to content

Commit

Permalink
Merge pull request #380 from robertknight/remove-implicit-features
Browse files Browse the repository at this point in the history
Use "dep:" prefix to prevent implicit creation of features
  • Loading branch information
robertknight authored Oct 12, 2024
2 parents aa1d23a + fbc465a commit 2ee9990
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ crate-type = ["lib", "cdylib"]
# Use AVX-512 instructions if available. Requires nightly Rust for AVX-512 intrinsics.
avx512 = ["rten-simd/avx512", "rten-vecmath/avx512"]
# Enable loading models using memory mapping
mmap = ["memmap2"]
mmap = ["dep:memmap2"]
# Generate WebAssembly API using wasm-bindgen.
wasm_api = []
# Enable operators that generate random numbers.
random = ["fastrand", "fastrand-contrib"]
random = ["dep:fastrand", "dep:fastrand-contrib"]

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.83"
Expand Down
2 changes: 1 addition & 1 deletion rten-generate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ rten-tensor = { path = "../rten-tensor", version = "0.13.1" }

[features]
# Enable text decoding using tokenizers from rten-text
text-decoder = ["rten-text"]
text-decoder = ["dep:rten-text"]

[package.metadata.docs.rs]
features = ["text-decoder"]

0 comments on commit 2ee9990

Please sign in to comment.