3 stable releases
1.1.0 | Feb 15, 2025 |
---|---|
1.0.9 | Feb 2, 2025 |
1.0.6-beta.0 |
|
1.0.4 |
|
#177 in Text processing
1,480 downloads per month
1.5MB
17K
SLoC
COXave
About
The library is hosted on crates.io.
Add library
CLI:
cargo add COXave
Cargo.toml:
[dependencies]
COXave = { version = "*" }
Features
Add feature to Cargo.toml to use universal functors (without SIMD-accelerated):
[dependencies]
COXave = { version = "*", features = ["universal"] }
Build
Specify target instruction set
ARM/AARCH64
V7/NEON
export RUSTFLAGS="-C target-feature=+neon,+v7"
V8/NEON
export RUSTFLAGS="-C target-feature=+neon"
x86/x86_64
SSE/SSE2
export RUSTFLAGS="-C target-feature=+sse,+sse2"
SSE/SSE2 (+SSSE3)
export RUSTFLAGS="-C target-feature=+sse,+sse2,+ssse3"
AVX/AVX2
export RUSTFLAGS="-C target-feature=+avx,+avx2"
AVX-512F/AVX-512BW
export RUSTFLAGS="-C target-feature=+avx512f,+avx512bw"
Before using unstable features you need to run this:
rustup default nightly || rustup toolchain install nightly
Usage with Python
maturin build -m api/Cargo.toml --release --features python && pip install --force-reinstall target/wheels/COXave-*.whl
License
COXave is primarily distributed under the terms of three the Anti-Virus license and MIT license and the Apache License (Version 2.0)
See LICENSE-ANTI-VIRUS and LICENSE-APACHE and LICENSE-MIT for details.
Dependencies
~0–0.9MB
~18K SLoC