diff options
| -rw-r--r-- | whirl/Cargo.toml | 4 | ||||
| -rw-r--r-- | whirl/src/lib.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/whirl/Cargo.toml b/whirl/Cargo.toml index b30c787..a319d63 100644 --- a/whirl/Cargo.toml +++ b/whirl/Cargo.toml @@ -64,9 +64,9 @@ whirl_prompt = { path = "../whirl_prompt" } whirl_server = { path = "../whirl_server" } # Allocator -[target.'cfg(target_family = "windows")'.dependencies] +[target.'cfg(windows)'.dependencies] mimalloc = { version = "0.1.25", default-features = false } -[target.'cfg(target_family = "unix")'.dependencies] +[target.'cfg(unix)'.dependencies] jemallocator = "0.3.2" diff --git a/whirl/src/lib.rs b/whirl/src/lib.rs index 49a75f5..c9329f3 100644 --- a/whirl/src/lib.rs +++ b/whirl/src/lib.rs @@ -20,11 +20,11 @@ extern crate serde_derive; // #[macro_use] // extern crate simple_error; -#[cfg(target_family = "windows")] +#[cfg(windows)] #[global_allocator] static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc; -#[cfg(target_family = "unix")] +#[cfg(unix)] #[global_allocator] static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; |