# 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" rust-version = "1.65" name = "cosmic-text" version = "0.12.1" authors = ["Jeremy Soller "] description = "Pure Rust multi-line text handling" documentation = "https://docs.rs/cosmic-text/latest/cosmic_text/" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/pop-os/cosmic-text" [package.metadata.docs.rs] features = ["vi"] [profile.test] opt-level = 1 [[bench]] name = "layout" harness = false [dependencies.bitflags] version = "2.4.1" [dependencies.cosmic_undo_2] version = "0.2.0" optional = true [dependencies.fontdb] version = "0.16" default-features = false [dependencies.hashbrown] version = "0.14.1" optional = true default-features = false [dependencies.libm] version = "0.2.8" optional = true [dependencies.log] version = "0.4.20" [dependencies.modit] version = "0.1.4" optional = true [dependencies.rangemap] version = "1.4.0" [dependencies.rayon] version = "1" optional = true [dependencies.rustc-hash] version = "1.1.0" default-features = false [dependencies.rustybuzz] version = "0.14" features = ["libm"] default-features = false [dependencies.self_cell] version = "1.0.1" [dependencies.swash] version = "0.1.17" optional = true [dependencies.syntect] version = "5.1.0" optional = true [dependencies.sys-locale] version = "0.3.1" optional = true [dependencies.ttf-parser] version = "0.21" default-features = false [dependencies.unicode-bidi] version = "0.3.13" features = ["hardcoded-data"] default-features = false [dependencies.unicode-linebreak] version = "0.1.5" [dependencies.unicode-script] version = "0.5.5" [dependencies.unicode-segmentation] version = "1.10.1" [dev-dependencies.criterion] version = "0.5.1" features = ["cargo_bench_support"] default-features = false [dev-dependencies.tiny-skia] version = "0.11.2" [features] default = [ "std", "swash", "fontconfig", ] fontconfig = [ "fontdb/fontconfig", "std", ] monospace_fallback = [] no_std = [ "rustybuzz/libm", "hashbrown", "dep:libm", ] shape-run-cache = [] std = [ "fontdb/memmap", "fontdb/std", "rustybuzz/std", "sys-locale", "ttf-parser/std", "unicode-bidi/std", "rayon", ] vi = [ "modit", "syntect", "cosmic_undo_2", ] warn_on_missing_glyphs = [] wasm-web = ["sys-locale?/js"]