From 13d5da162c26b810a8478feba5902fe756f5781a Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Wed, 25 Dec 2024 15:13:59 +0100 Subject: [PATCH] Make web_sys always no_std, std feature only cascades to other deps --- CHANGELOG.md | 3 +++ crates/web-sys/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f00eaaa3cb8..87b240e9b95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -67,6 +67,9 @@ * Internal functions are now removed instead of invalidly imported if they are unused. [#4366](https://github.com/rustwasm/wasm-bindgen/pull/4366) +* `web-sys` crate now fully works on `no_std`. + [#4378](https://github.com/rustwasm/wasm-bindgen/pull/4378) + -------------------------------------------------------------------------------- ## [0.2.99](https://github.com/rustwasm/wasm-bindgen/compare/0.2.98...0.2.99) diff --git a/crates/web-sys/src/lib.rs b/crates/web-sys/src/lib.rs index bb2e73de44e..38cdb6732e9 100644 --- a/crates/web-sys/src/lib.rs +++ b/crates/web-sys/src/lib.rs @@ -12,7 +12,7 @@ //! require. #![doc(html_root_url = "https://docs.rs/web-sys/0.3")] -#![cfg_attr(not(feature = "std"), no_std)] +#![no_std] #![allow(deprecated)] extern crate alloc;