Implements a basic web platform for the wasm32-unknown-unknown target for gpui Release Notes: - N/A *or* Added/Fixed/Improved ... --------- Co-authored-by: John Tur <john-tur@outlook.com>
46 lines
1.2 KiB
TOML
46 lines
1.2 KiB
TOML
[package]
|
|
name = "gpui_wgpu"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "Apache-2.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/gpui_wgpu.rs"
|
|
|
|
[features]
|
|
default = []
|
|
font-kit = ["dep:font-kit"]
|
|
|
|
[dependencies]
|
|
gpui.workspace = true
|
|
anyhow.workspace = true
|
|
bytemuck = "1"
|
|
collections.workspace = true
|
|
cosmic-text = "0.17.0"
|
|
etagere = "0.2"
|
|
itertools.workspace = true
|
|
log.workspace = true
|
|
parking_lot.workspace = true
|
|
profiling.workspace = true
|
|
raw-window-handle = "0.6"
|
|
smallvec.workspace = true
|
|
swash = "0.2.6"
|
|
gpui_util.workspace = true
|
|
wgpu.workspace = true
|
|
|
|
# Optional: only needed on platforms with multiple font sources (e.g. Linux)
|
|
# WARNING: If you change this, you must also publish a new version of zed-font-kit to crates.io
|
|
font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "110523127440aefb11ce0cf280ae7c5071337ec5", package = "zed-font-kit", version = "0.14.1-zed", optional = true }
|
|
|
|
[target.'cfg(not(target_family = "wasm"))'.dependencies]
|
|
pollster.workspace = true
|
|
|
|
[target.'cfg(target_family = "wasm")'.dependencies]
|
|
wasm-bindgen.workspace = true
|
|
wasm-bindgen-futures = "0.4"
|
|
web-sys = { version = "0.3", features = ["HtmlCanvasElement"] }
|
|
js-sys = "0.3" |