From e9be1f8b274c90b70551185bd41313d72f2d2294 Mon Sep 17 00:00:00 2001 From: MatthieuCoder Date: Sun, 15 Jan 2023 19:03:22 +0400 Subject: [PATCH] fix msys2 build --- exes/gateway/Cargo.toml | 2 +- exes/gateway/src/main.rs | 4 ++-- exes/ratelimit/Cargo.toml | 2 +- exes/ratelimit/src/main.rs | 4 ++-- exes/rest/Cargo.toml | 2 +- exes/rest/src/main.rs | 4 ++-- exes/webhook/Cargo.toml | 2 +- exes/webhook/src/main.rs | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/exes/gateway/Cargo.toml b/exes/gateway/Cargo.toml index 98a1ae8..e7a0813 100644 --- a/exes/gateway/Cargo.toml +++ b/exes/gateway/Cargo.toml @@ -29,5 +29,5 @@ tracing-opentelemetry = "0.18.0" opentelemetry = "0.18.0" opentelemetry-http = "0.7.0" -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(target_os = "windows"))'.dependencies] tikv-jemallocator = "0.5" \ No newline at end of file diff --git a/exes/gateway/src/main.rs b/exes/gateway/src/main.rs index 6cac7e1..900171c 100644 --- a/exes/gateway/src/main.rs +++ b/exes/gateway/src/main.rs @@ -1,10 +1,10 @@ use gateway::GatewayServer; use leash::ignite; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] use tikv_jemallocator::Jemalloc; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; diff --git a/exes/ratelimit/Cargo.toml b/exes/ratelimit/Cargo.toml index b011d38..1d28f3b 100644 --- a/exes/ratelimit/Cargo.toml +++ b/exes/ratelimit/Cargo.toml @@ -40,5 +40,5 @@ test-log = { version = "0.2.11", features = ["log", "trace"] } name = "bucket" harness = false -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(target_os = "windows"))'.dependencies] tikv-jemallocator = "0.5" \ No newline at end of file diff --git a/exes/ratelimit/src/main.rs b/exes/ratelimit/src/main.rs index d16e7d3..b764367 100644 --- a/exes/ratelimit/src/main.rs +++ b/exes/ratelimit/src/main.rs @@ -1,10 +1,10 @@ use leash::ignite; use ratelimit::RatelimiterServerComponent; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] use tikv_jemallocator::Jemalloc; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; diff --git a/exes/rest/Cargo.toml b/exes/rest/Cargo.toml index 3d362b2..fb495a0 100644 --- a/exes/rest/Cargo.toml +++ b/exes/rest/Cargo.toml @@ -31,5 +31,5 @@ opentelemetry = "0.18.0" opentelemetry-http = "0.7.0" tracing-opentelemetry = "0.18.0" -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(target_os = "windows"))'.dependencies] tikv-jemallocator = "0.5" \ No newline at end of file diff --git a/exes/rest/src/main.rs b/exes/rest/src/main.rs index 643bc89..1e73e09 100644 --- a/exes/rest/src/main.rs +++ b/exes/rest/src/main.rs @@ -1,10 +1,10 @@ use leash::ignite; use rest::ReverseProxyServer; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] use tikv_jemallocator::Jemalloc; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; diff --git a/exes/webhook/Cargo.toml b/exes/webhook/Cargo.toml index af256c8..e4fc0ac 100644 --- a/exes/webhook/Cargo.toml +++ b/exes/webhook/Cargo.toml @@ -21,5 +21,5 @@ anyhow = "1.0.68" async-nats = "0.26.0" -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(target_os = "windows"))'.dependencies] tikv-jemallocator = "0.5" \ No newline at end of file diff --git a/exes/webhook/src/main.rs b/exes/webhook/src/main.rs index 9432dbd..bbacda7 100644 --- a/exes/webhook/src/main.rs +++ b/exes/webhook/src/main.rs @@ -1,10 +1,10 @@ use leash::ignite; use webhook::WebhookServer; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] use tikv_jemallocator::Jemalloc; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(target_os = "windows"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; -- 2.39.5