1[package]
2name = "gpui_wgpu"
3version = "0.1.0"
4edition.workspace = true
5publish.workspace = true
6license = "Apache-2.0"
7
8[lints]
9workspace = true
10
11[lib]
12path = "src/gpui_wgpu.rs"
13
14[features]
15default = []
16font-kit = ["dep:font-kit"]
17
18[dependencies]
19gpui.workspace = true
20anyhow.workspace = true
21bytemuck = "1"
22collections.workspace = true
23cosmic-text = "0.17.0"
24etagere = "0.2"
25itertools.workspace = true
26log.workspace = true
27parking_lot.workspace = true
28profiling.workspace = true
29raw-window-handle = "0.6"
30smallvec.workspace = true
31swash = "0.2.6"
32gpui_util.workspace = true
33wgpu.workspace = true
34
35# Optional: only needed on platforms with multiple font sources (e.g. Linux)
36# WARNING: If you change this, you must also publish a new version of zed-font-kit to crates.io
37font-kit = { git = "https://github.com/zed-industries/font-kit", rev = "110523127440aefb11ce0cf280ae7c5071337ec5", package = "zed-font-kit", version = "0.14.1-zed", optional = true }
38
39[target.'cfg(not(target_family = "wasm"))'.dependencies]
40pollster.workspace = true
41
42[target.'cfg(target_family = "wasm")'.dependencies]
43wasm-bindgen.workspace = true
44wasm-bindgen-futures = "0.4"
45web-sys = { version = "0.3", features = ["HtmlCanvasElement"] }
46js-sys = "0.3"