# 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 = "2018" rust-version = "1.77" name = "font-kit" version = "0.14.2" authors = ["Patrick Walton "] build = "build.rs" exclude = ["resources/**"] autobins = false autoexamples = false autotests = false autobenches = false description = "A cross-platform font loading library" homepage = "https://github.com/servo/font-kit" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/servo/font-kit" [lib] name = "font_kit" path = "src/lib.rs" [[example]] name = "fallback" path = "examples/fallback.rs" [[example]] name = "list-fonts" path = "examples/list-fonts.rs" [[example]] name = "match-font" path = "examples/match-font.rs" [[example]] name = "render-glyph" path = "examples/render-glyph.rs" [[test]] name = "select_font" path = "tests/select_font.rs" [[test]] name = "tests" path = "tests/tests.rs" [dependencies.bitflags] version = "2.4" [dependencies.byteorder] version = "1.2" [dependencies.float-ord] version = "0.3" [dependencies.freetype] version = "0.7" optional = true [dependencies.lazy_static] version = "1.1" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4.4" [dependencies.pathfinder_geometry] version = "0.5" [dependencies.pathfinder_simd] version = "0.5.4" [dependencies.yeslogic-fontconfig-sys] version = "6.0" optional = true [dev-dependencies.clap] version = "4" [dev-dependencies.colored] version = "2" [dev-dependencies.pbr] version = "1.0" [dev-dependencies.prettytable-rs] version = "0.10" [features] default = ["source"] loader-freetype = ["freetype"] loader-freetype-default = ["loader-freetype"] source = [] source-fontconfig = ["yeslogic-fontconfig-sys"] source-fontconfig-default = ["source-fontconfig"] source-fontconfig-dlopen = ["yeslogic-fontconfig-sys/dlopen"] [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-foundation] version = "0.9" [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-graphics] version = "0.23" [target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.core-text] version = "20.1.0" [target.'cfg(not(any(target_arch = "wasm32", target_family = "windows", target_os = "android", target_env = "ohos")))'.dependencies.dirs] version = "5.0" [target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios")))'.dependencies.freetype-sys] version = "0.20" [target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32", target_env = "ohos")))'.dependencies.yeslogic-fontconfig-sys] version = "6.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies.walkdir] version = "2.1" [target.'cfg(target_family = "windows")'.dependencies.dwrote] version = "0.11" default-features = false [target.'cfg(target_family = "windows")'.dependencies.winapi] version = "0.3" features = [ "dwrite", "minwindef", "sysinfoapi", "winbase", "winnt", ]