diff --git a/vach/Cargo.toml b/vach/Cargo.toml index 76d5985a..2f17c95b 100644 --- a/vach/Cargo.toml +++ b/vach/Cargo.toml @@ -40,11 +40,12 @@ parking_lot = { version = "0.12.1" } rayon = { version = "1.8.0", optional = true } # Jemalloc +[target.'cfg(not(target_env = "msvc"))'.dependencies] tikv-jemallocator = { version = "0.5.0", optional = true } [features] default = ["builder", "archive"] -all = ["default", "compression", "crypto", "multithreaded", "tikv-jemallocator"] +all = ["default", "compression", "crypto", "multithreaded"] archive = [] builder = [] diff --git a/vach/src/lib.rs b/vach/src/lib.rs index a368709e..1e13924e 100644 --- a/vach/src/lib.rs +++ b/vach/src/lib.rs @@ -26,7 +26,7 @@ It was built to be secure, contained and protected. A big benefit of `vach` is t - `crypto`: Enables encryption and authentication functionality by pulling the `ed25519_dalek` and `aes_gcm` crates - `tikv-jemallocator`: Enable `jemalloc`` as the global allocator. Enabled by the [`tikv-jemallocator`](https://crates.io/crates/tikv-jemallocator) crate, don't enable on `x86_64-pc-windows-msvc` - `default`: Enables the `archive` and `builder` features. -- `all`: Enables all the features listed above. +- `all`: Enables all the features listed above. `tikv-jemallocator` needs to be enabled separately. ### 🀄 Show me some code _dang it!_