# 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 = "fontkit" version = "0.6.0-beta.9" authors = ["Zimon Dai "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A simple library for font loading and indexing" readme = "Readme.md" license = "MIT OR Apache-2.0" repository = "https://github.com/alibaba/font-toolkit" [package.metadata.component] package = "alibaba:fontkit" [package.metadata.component.bindings] derives = [ "Clone", "Hash", "PartialEq", "PartialOrd", "Eq", "Default", ] [package.metadata.component.bindings.with] "alibaba:fontkit/commons" = "crate::font" [profile.release] opt-level = "s" lto = true codegen-units = 1 debug = 0 strip = true [lib] name = "fontkit" crate-type = [ "cdylib", "rlib", ] path = "src/lib.rs" [[test]] name = "basic" path = "tests/basic.rs" [dependencies.ab_glyph_rasterizer] version = "0.1.5" optional = true [dependencies.arc-swap] version = "1.6.0" [dependencies.brotli-decompressor] version = "2.3.2" optional = true [dependencies.byteorder] version = "1.4.3" optional = true [dependencies.dashmap] version = "5.3.4" [dependencies.flate2] version = "1.0.22" optional = true [dependencies.inflections] version = "1.1.1" [dependencies.log] version = "0.4.17" [dependencies.ordered-float] version = "3.9.1" optional = true [dependencies.ouroboros] version = "0.17.0" [dependencies.pathfinder_content] version = "0.5.0" optional = true default-features = false [dependencies.pathfinder_geometry] version = "0.5.1" optional = true [dependencies.pathfinder_simd] version = "0.5.2" features = ["pf-no-simd"] optional = true [dependencies.png] version = "0.17.13" optional = true [dependencies.textwrap] version = "0.16.1" features = [ "smawk", "unicode-linebreak", ] optional = true default-features = false [dependencies.thiserror] version = "1.0.30" [dependencies.tiny-skia-path] version = "0.11.1" [dependencies.ttf-parser] version = "0.21.1" [dependencies.unicode-bidi] version = "0.3.7" optional = true [dependencies.unicode-normalization] version = "0.1.19" optional = true [dependencies.unicode-script] version = "0.5.4" optional = true [dependencies.woff2-patched] version = "0.3.0" optional = true [features] default = [ "parse", "metrics", "ras", "wit", ] metrics = [ "unicode-bidi", "unicode-normalization", "unicode-script", "textwrap", ] optimize_stroke_broken = [] parse = [ "byteorder", "flate2", "woff2-patched", "ordered-float", ] ras = [ "ab_glyph_rasterizer", "pathfinder_content", "pathfinder_geometry", "pathfinder_simd", "png", "fast_image_resize", ] wit = ["wit-bindgen-rt"] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.fast_image_resize] version = "3.0.4" features = ["only_u8x4"] optional = true [target."cfg(target_arch = \"wasm32\")".dependencies.resize] version = "0.8.6" features = ["std"] default-features = false [target."cfg(target_arch = \"wasm32\")".dependencies.rgb] version = "0.8.48" [target."cfg(target_arch = \"wasm32\")".dependencies.wit-bindgen-rt] version = "0.24.0" optional = true