# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "femtovg" version = "0.11.2" authors = [ "Peter Todorov ", "Adam Nemecek ", ] build = false exclude = [ "assets", "examples", ] autobins = false autoexamples = false autotests = false autobenches = false description = "Antialiased 2D vector drawing library" readme = "README.md" keywords = [ "graphics", "canvas", "vector", "drawing", "gpu", ] categories = ["graphics"] license = "MIT/Apache-2.0" repository = "https://github.com/femtovg/femtovg" [package.metadata.docs.rs] all-features = true features = ["glutin/egl"] rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] debug = 2 [lib] name = "femtovg" path = "src/lib.rs" [[example]] name = "book_example_1_1" path = "book/src/1_getting_started/1_setting_up.rs" [[example]] name = "book_example_1_2" path = "book/src/1_getting_started/2_rendering.rs" [[example]] name = "book_example_1_3" path = "book/src/1_getting_started/3_event_loop.rs" [[test]] name = "integration" path = "tests/integration.rs" [[test]] name = "transform2D" path = "tests/transform2D.rs" [dependencies.bitflags] version = "2.6.0" [dependencies.bytemuck] version = "1.16" features = ["derive"] [dependencies.fnv] version = "1.0.7" [dependencies.glow] version = "0.15.0" default-features = false [dependencies.image] version = "0.25.0" optional = true default-features = false [dependencies.imgref] version = "1.11.0" [dependencies.log] version = "0.4" [dependencies.lru] version = "0.12.5" default-features = false [dependencies.rgb] version = "0.8.50" [dependencies.rustybuzz] version = "0.20.0" [dependencies.serde] version = "1.0" features = [ "derive", "rc", ] optional = true [dependencies.slotmap] version = "1.0.7" [dependencies.unicode-bidi] version = "0.3.17" [dependencies.unicode-segmentation] version = "1.12.0" [dependencies.wgpu] version = "23" features = ["wgsl"] optional = true default-features = false [dev-dependencies.cosmic-text] version = "0.12.1" [dev-dependencies.euclid] version = "0.22.3" [dev-dependencies.image] version = "0.25.0" features = [ "jpeg", "png", ] default-features = false [dev-dependencies.instant] version = "0.1" features = ["now"] [dev-dependencies.lazy_static] version = "1.4.0" [dev-dependencies.rand] version = "0.8" [dev-dependencies.resource] version = "0.5.0" [dev-dependencies.spin_on] version = "0.1" [dev-dependencies.svg] version = "0.14.0" [dev-dependencies.swash] version = "=0.1.17" [dev-dependencies.usvg] version = "0.33.0" [dev-dependencies.wgpu] version = "23" [dev-dependencies.winit] version = "0.29.1" [features] debug_inspector = [] default = ["image-loading"] image-loading = ["image"] wgpu = ["dep:wgpu"] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.glutin] version = "0.31" optional = true default-features = false [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.glutin] version = "0.31.0" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.glutin-winit] version = "0.4.0" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.raw-window-handle] version = "0.5.0" [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] version = "0.2" [target.'cfg(target_arch = "wasm32")'.dependencies.web_sys] version = "0.3" features = [ "WebGlContextAttributes", "HtmlImageElement", "WebGl2RenderingContext", ] package = "web-sys" [target.'cfg(target_arch = "wasm32")'.dev-dependencies.console_error_panic_hook] version = "0.1.5" [target.'cfg(target_arch = "wasm32")'.dev-dependencies.getrandom] version = "0.2.2" features = ["js"] [target.'cfg(target_arch = "wasm32")'.dev-dependencies.instant] version = "0.1" features = [ "wasm-bindgen", "now", ] [target.'cfg(target_arch = "wasm32")'.dev-dependencies.resource] version = "0.5.0" features = ["force-static"] [target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-futures] version = "0.4.45" [target.'cfg(target_arch = "wasm32")'.dev-dependencies.web_sys] version = "0.3" features = [ "console", "WebGlContextAttributes", ] package = "web-sys" [target.'cfg(target_arch = "wasm32")'.dev-dependencies.wgpu] version = "23" features = ["webgl"]