nushell/.github/workflows
Piepmatz 4b1f4e63c3
Replace std::time::Instant with web_time::Instant (#14668)
# Description
The `std::time::Instant` type panics in the WASM context. To prevent
this, I replaced all uses of `std::time::Instant` in WASM-relevant
crates with `web_time::Instant`. This ensures commands using `Instant`
work in WASM without issues. For non-WASM targets, `web-time` simply
reexports `std::time`, so this change doesn’t affect regular builds
([docs](https://docs.rs/web-time/latest/web_time/)).

To ensure future code doesn't reintroduce `std::time::Instant` in WASM
contexts, I added a `clippy wasm` command to the toolkit. This runs
`cargo clippy` with a `clippy.toml` configured to disallow
`std::time::Instant`. Since `web-time` aliases `std::time` by default,
the `clippy.toml` is stored in `clippy/wasm` and is only loaded when
targeting WASM. I also added a new CI job that tests this too.

# User-Facing Changes

None.
2024-12-25 16:50:02 +08:00
..
audit.yml Bump rustsec/audit-check from 1.4.1 to 2.0.0 (#13921) 2024-09-25 09:55:47 +08:00
check-msrv.nu
ci.yml Replace std::time::Instant with web_time::Instant (#14668) 2024-12-25 16:50:02 +08:00
milestone.yml Add milestone to a closed issue that has a merged PR fix automatically (#14131) 2024-10-20 10:45:05 +08:00
nightly-build.yml Bump softprops/action-gh-release from 2.0.8 to 2.0.9 (#14273) 2024-11-06 10:30:55 +08:00
release-pkg.nu Add loongarch64-unknown-linux-gnu-gcc build target (#13895) 2024-09-22 17:20:15 +08:00
release.yml Downgrade softprops/action-gh-release to 2.0.5 (#14327) 2024-11-13 11:28:47 +08:00
typos.yml Bump crate-ci/typos from 1.28.2 to 1.28.4 (#14614) 2024-12-18 10:42:28 +08:00
winget-submission.yml