You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 0.22 removed the feature webgl from the dependency wgpu, eframe requires the flag --cfg=web_sys_unstable_apis to build for wasm32-unknown-unknown (with all features).
.cargo/config.toml in the parent path seems missed by docs.rs as it fetches and processes each crate separately.
Note that docs.rs seems to ignore errors of the non-first targets silently and just drop the erroneous ones from the platform list.
The text was updated successfully, but these errors were encountered:
Currently, the platform list of
eframe
doc (docs.rs/eframe/0.24.1) contains onlyand web items for
wasm32-unknown-unknown
(e.g.WebRunner
) aren't accessible.I've found docs.rs/eframe/0.21.3 has
wasm32-unknown-unknown
in the platform list, while 0.22 and later does not.I'm not sure (no way to verify), but modifying
eframe/Cargo.toml
as follows may solve this issue (see also docs.rs metadata)[package.metadata.docs.rs] all-features = true targets = ["x86_64-unknown-linux-gnu", "wasm32-unknown-unknown"] + rustc-args = ["--cfg=web_sys_unstable_apis"]
because
Since 0.22 removed the feature
webgl
from the dependencywgpu
,eframe
requires the flag--cfg=web_sys_unstable_apis
to build forwasm32-unknown-unknown
(with all features)..cargo/config.toml
in the parent path seems missed by docs.rs as it fetches and processes each crate separately.Note that docs.rs seems to ignore errors of the non-first targets silently and just drop the erroneous ones from the platform list.
The text was updated successfully, but these errors were encountered: