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