summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2020-01-21 10:15:54 -0800
committerGitHub <noreply@github.com>2020-01-21 10:15:54 -0800
commit9df805ff5449527d1fead3e9533152c4a357c24c (patch)
tree14804c9e18543464627aea6a67bad37ac34a8bdd
parent5d82ac2d1e7739a789a6aa014301355d6c0550d9 (diff)
chore: do not depend on `loom` on windows (#2146)
Loom currently does not compile on windows due to a transitive dependency on `generator`. The `generator` crate builds have started to fail on windows CI. Loom is not run under windows, however, so removing the loom dependency on windows is sufficient to fix CI. Refs: https://github.com/Xudong-Huang/generator-rs/issues/19
-rw-r--r--tokio/Cargo.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml
index 9fa7f239..ab0d8ecf 100644
--- a/tokio/Cargo.toml
+++ b/tokio/Cargo.toml
@@ -124,10 +124,14 @@ optional = true
[dev-dependencies]
tokio-test = { version = "0.2.0" }
futures = { version = "0.3.0", features = ["async-await"] }
-loom = { version = "0.2.13", features = ["futures", "checkpoint"] }
proptest = "0.9.4"
tempfile = "3.1.0"
+# loom is currently not compiling on windows.
+# See: https://github.com/Xudong-Huang/generator-rs/issues/19
+[target.'cfg(not(windows))'.dev-dependencies]
+loom = { version = "0.2.13", features = ["futures", "checkpoint"] }
+
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]