-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
67 lines (57 loc) · 2.57 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[package]
name = "theo"
version = "0.1.1"
edition = "2021"
license = "LGPL-3.0-or-later OR MPL-2.0"
rust-version = "1.72.0"
authors = ["John Nunley <[email protected]>"]
description = "A standalone renderer for windowing graphics"
documentation = "https://docs.rs/theo"
homepage = "https://codeberg.org/notgull/theo"
repository = "https://codeberg.org/notgull/theo"
[dependencies]
bytemuck = { version = "1.13.1", default-features = false }
cosmic-text = { version = "0.9.0", default-features = false, features = ["std", "swash"] }
glow = { version = "0.12.1", optional = true }
piet = { version = "0.6.2", default-features = false }
piet-glow = { version = "0.1.0", optional = true }
piet-tiny-skia = "0.2.0"
piet-wgpu = { version = "0.3.0", default-features = false, optional = true }
raw-window-handle = "0.5.0"
slab = { version = "0.4.8", default-features = false, optional = true }
softbuffer = { version = "0.3.0", default-features = false }
tiny-skia = { version = "0.11", default-features = false, features = ["std"] }
tracing = { version = "0.1.37", default-features = false }
wgpu0 = { package = "wgpu", version = "0.17.0", default-features = false, optional = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
glutin = { version = "0.30.6", default-features = false, optional = true, features = ["egl"] }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.84"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.61"
features = ["HtmlCanvasElement", "WebGl2RenderingContext", "WebGlRenderingContext", "Window", "Document", "Element"]
[features]
default = ["gl", "x11", "wayland", "egl", "glx", "wgl", "wgpu"]
gl = ["glow", "glutin", "piet-glow"]
x11 = ["glutin?/x11", "softbuffer/x11"]
wayland = ["glutin?/wayland", "softbuffer/wayland"]
egl = ["gl", "glutin/egl"]
glx = ["gl", "glutin/glx"]
wgl = ["gl", "glutin/wgl"]
wgpu = ["piet-wgpu", "wgpu0", "slab"]
[build-dependencies]
cfg_aliases = "0.1.1"
[dev-dependencies]
env_logger = { version = "0.10.0", default-features = false, features = ["color"] }
futures-lite = "1.13.0"
image = { version = "0.24.5", default-features = false, features = ["png"] }
instant = "0.1.12"
softbuffer = { version = "0.3.0", default-features = false, features = ["x11"] }
tracing = { version = "0.1.37", features = ["log"] }
winit = { version = "0.28.1", default-features = false, features = ["x11"] }
[target.'cfg(not(any(windows, target_arch = "wasm32")))'.dev-dependencies]
x11-dl = "2.21.0"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
console_error_panic_hook = "0.1.7"
[workspace]
members = ["run-wasm"]