1[package]
2name = "femtovg"
3description = "Antialiased 2D vector drawing library"
4version = "0.9.0"
5license = "MIT/Apache-2.0"
6readme = "README.md"
7authors = [
8 "Peter Todorov <ptodorov@cytec.bg>",
9 "Adam Nemecek <adamnemecek@gmail.com>",
10]
11keywords = ["graphics", "canvas", "vector", "drawing", "gpu"]
12categories = ["graphics"]
13repository = "https://github.com/femtovg/femtovg"
14edition = "2021"
15exclude = ["assets", "examples"]
16
17[profile.release]
18debug = true
19
20[dependencies]
21fnv = "1.0.7"
22rgb = "0.8.20"
23imgref = "1.6.1"
24bitflags = "2.0.2"
25rustybuzz = "0.13.0"
26unicode-bidi = "0.3.4"
27unicode-segmentation = "1.6.0"
28slotmap = "1.0.7"
29lru = { version = "0.12.0", default-features = false }
30image = { version = "0.24.0", optional = true, default-features = false }
31serde = { version = "1.0", optional = true, features = ["derive", "rc"] }
32glow = { version = "0.13.0", default-features = false }
33log = "0.4"
34
35[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
36glutin = { version = "0.30.3", optional = true, default-features = false }
37
38[target.'cfg(target_arch = "wasm32")'.dependencies]
39web_sys = { version = "0.3", package = "web-sys", features = [
40 "WebGlContextAttributes",
41 "HtmlImageElement",
42 "WebGl2RenderingContext",
43] }
44wasm-bindgen = "0.2"
45
46[features]
47default = ["image-loading"]
48image-loading = ["image"]
49debug_inspector = []
50
51[dev-dependencies]
52winit = { version = "0.28.1", default-features = false }
53euclid = "0.22.3"
54rand = "0.8"
55svg = "0.14.0"
56usvg = { version = "0.33.0" }
57instant = { version = "0.1", features = ["now"] }
58resource = "0.5.0"
59image = { version = "0.24.0", default-features = false, features = [
60 "jpeg",
61 "png",
62] }
63cosmic-text = { git = "https://github.com/pop-os/cosmic-text", rev = "e00109d77f06d5a2e3057865eda3f530bc40a046" }
64swash = "^0.1" # keep this in sync with cosmic-text
65lazy_static = "1.4.0"
66
67[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
68glutin = "0.30.0"
69glutin-winit = "0.3.0"
70raw-window-handle = "0.5.0"
71
72[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
73web_sys = { version = "0.3", package = "web-sys", features = [
74 "console",
75 "WebGlContextAttributes",
76] }
77console_error_panic_hook = "0.1.5"
78instant = { version = "0.1", features = ["wasm-bindgen", "now"] }
79resource = { version = "0.5.0", features = ["force-static"] }
80getrandom = { version = "0.2.2", features = ["js"] }
81
82[[example]]
83name = "book_example_1_1"
84path = "book/src/1_getting_started/1_setting_up.rs"
85
86[[example]]
87name = "book_example_1_2"
88path = "book/src/1_getting_started/2_rendering.rs"
89
90[[example]]
91name = "book_example_1_3"
92path = "book/src/1_getting_started/3_event_loop.rs"
93
94[package.metadata.docs.rs]
95features = ["glutin/egl"]
96