From d4fec2c5d628b180226f6ab3005aa3e5845f1929 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 21 Nov 2019 00:05:50 +0900 Subject: [PATCH] chore: enable feature flag check on windows (#1798) --- ci/azure-test-stable.yml | 6 ------ tokio/src/sync/mod.rs | 4 ++++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/azure-test-stable.yml b/ci/azure-test-stable.yml index 93e9ee138..4e5c571bd 100644 --- a/ci/azure-test-stable.yml +++ b/ci/azure-test-stable.yml @@ -22,8 +22,6 @@ jobs: - script: cargo install cargo-hack displayName: Install cargo-hack - # FIXME(taiki-e): many features of current cargo-hack are not available on windows: https://github.com/taiki-e/cargo-hack/issues/3 - condition: not(eq(variables['Agent.OS'], 'Windows_NT')) - template: azure-is-release.yml @@ -53,8 +51,6 @@ jobs: CI: 'True' displayName: ${{ crate }} - cargo hack check --each-feature workingDirectory: $(Build.SourcesDirectory)/${{ crate }} - # FIXME(taiki-e): many features of current cargo-hack are not available on windows: https://github.com/taiki-e/cargo-hack/issues/3 - condition: not(eq(variables['Agent.OS'], 'Windows_NT')) - template: azure-patch-crates.yml @@ -84,5 +80,3 @@ jobs: CI: 'True' displayName: ${{ crate }} - cargo hack check --each-feature workingDirectory: $(Build.SourcesDirectory)/${{ crate }} - # FIXME(taiki-e): many features of current cargo-hack are not available on windows: https://github.com/taiki-e/cargo-hack/issues/3 - condition: not(eq(variables['Agent.OS'], 'Windows_NT')) diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs index 40566c0c0..3ee563c36 100644 --- a/tokio/src/sync/mod.rs +++ b/tokio/src/sync/mod.rs @@ -45,6 +45,10 @@ cfg_not_sync! { cfg_signal! { pub(crate) mod mpsc; pub(crate) mod semaphore; + + cfg_not_rt_threaded! { + pub(crate) mod oneshot; + } } }