From bc5ce20c3029d5250d85194e844d83d9c7c7a261 Mon Sep 17 00:00:00 2001 From: Maria Shtutman Date: Sat, 29 Jun 2024 14:46:28 -0600 Subject: [PATCH] Added conditional compilation for critical section dependency for unix and windows os families. --- fry_normalize/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fry_normalize/Cargo.toml b/fry_normalize/Cargo.toml index 256b333..bb2b8ec 100644 --- a/fry_normalize/Cargo.toml +++ b/fry_normalize/Cargo.toml @@ -10,3 +10,9 @@ regex = "1.10.4" num-bigfloat = { version = "1.7.1", default-features = false } once_cell = { version = "1.19.0", default-features = false, features = ["critical-section"] } derive_more = { version = "0.99.17", default-features = false, features = ["display"] } + +[target.'cfg(target_family = "windows")'.dependencies] +once_cell = { version = "1.19.0", default-features = false, features = ["std"] } + +[target.'cfg(target_family = "unix")'.dependencies] +once_cell = { version = "1.19.0", default-features = false, features = ["std"] }