Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use "dep:" prefix to prevent implicit creation of features #380

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading