Skip to content

Commit 24877cc

Browse files
committed
Remove nightly feature
1 parent a98dab1 commit 24877cc

File tree

9 files changed

+51
-22
lines changed

9 files changed

+51
-22
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,28 @@ jobs:
169169

170170
- name: Cache dependencies
171171
uses: Swatinem/rust-cache@v2
172+
173+
# - name: Install wasmtime
174+
# uses: taiki-e/install-action@v2
175+
# with:
176+
# tool: wasmtime
177+
178+
# - name: Install cargo-wasi
179+
# uses: taiki-e/install-action@v2
180+
# with:
181+
# tool: cargo-wasi
182+
183+
# - name: Build for WASI
184+
# run: cargo wasi build --features nightly --verbose
185+
186+
# - name: Build examples for WASI
187+
# run: cargo wasi build --features nightly --examples --verbose
188+
189+
# - name: Run tests in WASI environment
190+
# run: cargo wasi test --features nightly --verbose
172191

173192
- name: Build for WASI
174-
run: cargo build --target wasm32-wasip2 --features nightly --verbose
193+
run: cargo build --target wasm32-wasip2 --verbose
175194

176195
- name: Build examples for WASI
177-
run: cargo build --examples --target wasm32-wasip2 --features nightly --verbose
196+
run: cargo build --examples --target wasm32-wasip2 --verbose

examples/Cargo.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ publish = false
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77

8-
[features]
9-
nightly = ["tempfile/nightly"]
10-
118
[dev-dependencies]
129
notify = { workspace = true }
1310
notify-debouncer-mini = { workspace = true }
1411
notify-debouncer-full = { workspace = true }
1512
futures = { workspace = true }
16-
tempfile = { workspace = true }
1713
log = { workspace = true }
1814
env_logger = { workspace = true }
1915

16+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
17+
tempfile = { workspace = true }
18+
19+
[target.'cfg(target_family = "wasm")'.dev-dependencies]
20+
tempfile = { workspace = true, features = ["nightly"] }
21+
2022
[[example]]
2123
name = "async_monitor"
2224
path = "async_monitor.rs"

file-id/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ edition.workspace = true
1313
homepage.workspace = true
1414
repository.workspace = true
1515

16-
[features]
17-
nightly = ["tempfile/nightly"]
18-
1916
[[bin]]
2017
name = "file-id"
2118
path = "bin/file_id.rs"
@@ -26,5 +23,8 @@ serde = { workspace = true, optional = true }
2623
[target.'cfg(windows)'.dependencies]
2724
windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] }
2825

29-
[dev-dependencies]
30-
tempfile.workspace = true
26+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
27+
tempfile = { workspace = true }
28+
29+
[target.'cfg(target_family = "wasm")'.dev-dependencies]
30+
tempfile = { workspace = true, features = ["nightly"] }

file-id/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ println!("{file_id:?}");
2121

2222
- `serde` for serde support, off by default
2323

24-
- `nightly` for wasip2 support, off by default
25-
2624
[docs]: https://docs.rs/file-id

file-id/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! println!("{file_id:?}");
2929
//! ```
3030
31-
#![cfg_attr(feature = "nightly", feature(wasip2, wasi_ext))]
31+
#![cfg_attr(target_family = "wasm", feature(wasip2, wasi_ext))]
3232

3333
use std::{fs, io, path::Path};
3434

notify-debouncer-full/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ crossbeam-channel = ["dep:crossbeam-channel", "notify/crossbeam-channel"]
2020
macos_fsevent = ["notify/macos_fsevent"]
2121
macos_kqueue = ["notify/macos_kqueue"]
2222
serialization-compat-6 = ["notify/serialization-compat-6"]
23-
nightly = ["file-id/nightly", "tempfile/nightly"]
2423

2524
[dependencies]
2625
notify.workspace = true
@@ -36,4 +35,9 @@ rstest.workspace = true
3635
serde.workspace = true
3736
deser-hjson.workspace = true
3837
rand.workspace = true
39-
tempfile.workspace = true
38+
39+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
40+
tempfile = { workspace = true }
41+
42+
[target.'cfg(target_family = "wasm")'.dev-dependencies]
43+
tempfile = { workspace = true, features = ["nightly"] }

notify-debouncer-full/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ A debouncer for [notify] that is optimized for ease of use.
1818

1919
- `serialization-compat-6` passed down to notify, off by default
2020

21-
- `nightly` passed down to file-id, off by default
22-
2321
[docs]: https://docs.rs/notify-debouncer-full
2422
[notify]: https://crates.io/crates/notify

notify-debouncer-mini/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ crossbeam-channel = ["dep:crossbeam-channel", "notify/crossbeam-channel"]
1919
macos_fsevent = ["notify/macos_fsevent"]
2020
macos_kqueue = ["notify/macos_kqueue"]
2121
serialization-compat-6 = ["notify/serialization-compat-6"]
22-
nightly = ["tempfile/nightly"]
2322

2423
[dependencies]
2524
notify.workspace = true
2625
notify-types.workspace = true
2726
crossbeam-channel = { workspace = true, optional = true }
2827
log.workspace = true
29-
tempfile.workspace = true
28+
29+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
30+
tempfile = { workspace = true }
31+
32+
[target.'cfg(target_family = "wasm")'.dev-dependencies]
33+
tempfile = { workspace = true, features = ["nightly"] }

notify/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ serde = ["notify-types/serde"]
2323
macos_kqueue = ["kqueue", "mio"]
2424
macos_fsevent = ["fsevent-sys"]
2525
serialization-compat-6 = ["notify-types/serialization-compat-6"]
26-
nightly = ["tempfile/nightly"]
2726

2827
[dependencies]
2928
notify-types.workspace = true
@@ -52,6 +51,11 @@ mio.workspace = true
5251

5352
[dev-dependencies]
5453
serde_json.workspace = true
55-
tempfile.workspace = true
5654
nix.workspace = true
5755
insta.workspace = true
56+
57+
[target.'cfg(not(target_family = "wasm"))'.dev-dependencies]
58+
tempfile = { workspace = true }
59+
60+
[target.'cfg(target_family = "wasm")'.dev-dependencies]
61+
tempfile = { workspace = true, features = ["nightly"] }

0 commit comments

Comments
 (0)