We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5baaae0 + b93d704 commit a1c1635Copy full SHA for a1c1635
Cargo.toml
@@ -9,6 +9,10 @@ edition = "2018"
9
name = "main"
10
path = "src/main.rs"
11
12
+[features]
13
+jemalloc = ["jemalloc-ctl", "jemallocator"]
14
+default = ["jemalloc"]
15
+
16
[dependencies]
17
# AtCoder 2019年言語アップデート以降に使用できるクレート
18
@@ -70,8 +74,14 @@ ndarray = "=0.12.1"
70
74
nalgebra = "=0.18.1"
71
75
72
76
# 代替ヒープアロケータ。条件によってはシステムアロケータより速いことも
73
-jemallocator = "=0.3.2"
-jemalloc-ctl = "=0.3.3"
77
+[target.'cfg(not(windows))'.dependencies]
78
+jemallocator = { version = "=0.3.2", optional = true }
79
+jemalloc-ctl = { version = "=0.3.3", optional = true }
80
81
+[[test]]
82
+name = "jemallocator"
83
+path = "tests/test_jemallocator.rs"
84
+required-features = ["jemalloc"]
85
86
# ---------------------------------------------------------------------
87
0 commit comments