Currently gpui only supports webgpu as a backend when compiling for the web. However, webgpu support on Linux browsers is spotty (without setting experimental flags): - chromium has is enabled for nvidia and recent intel chips - firefox does not enable it This PR adds a WebGL backend, which is much more widely supported --- Release Notes: - N/A or Added/Fixed/Improved ... --------- Co-authored-by: Lukas Wirth <me@lukaswirth.dev>
18 lines
320 B
TOML
18 lines
320 B
TOML
[workspace]
|
|
|
|
[package]
|
|
name = "hello_web"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[[bin]]
|
|
name = "hello_web"
|
|
path = "main.rs"
|
|
|
|
[dependencies]
|
|
gpui = { path = "../../../gpui" }
|
|
gpui_platform = { path = "../../../gpui_platform" }
|
|
web-sys = { version = "0.3", features = ["Location", "Window"] }
|
|
web-time = "1"
|