# 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 = "salvation-cosmic-text" version = "0.12.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Pure Rust multi-line text handling" documentation = "https://docs.rs/salvation-cosmic-text/latest/salvation_cosmic_text/" readme = "README.md" license = "MIT OR Apache-2.0" repository = "https://github.com/Riateche/cosmic-text" [package.metadata.docs.rs] features = ["vi"] [profile.test] opt-level = 1 [lib] name = "salvation_cosmic_text" path = "src/lib.rs" [[test]] name = "editor_modified_state" path = "tests/editor_modified_state.rs" [[test]] name = "shaping_and_rendering" path = "tests/shaping_and_rendering.rs" [[test]] name = "wrap_stability" path = "tests/wrap_stability.rs" [[test]] name = "wrap_word_fallback" path = "tests/wrap_word_fallback.rs" [[bench]] name = "layout" path = "benches/layout.rs" harness = false [dependencies.bitflags] version = "2.4.1" [dependencies.cosmic_undo_2] version = "0.2.0" optional = true [dependencies.fontdb] version = "0.16.0" default-features = false [dependencies.hashbrown] version = "0.14.1" optional = true default-features = false [dependencies.itertools] version = "0.11.0" [dependencies.libm] version = "0.2.8" [dependencies.log] version = "0.4.20" [dependencies.modit] version = "0.1.4" optional = true [dependencies.rangemap] version = "1.4.0" [dependencies.rustc-hash] version = "1.1.0" default-features = false [dependencies.rustybuzz] version = "0.12.0" features = ["libm"] default-features = false [dependencies.self_cell] version = "1.0.1" [dependencies.swash] version = "0.1.12" optional = true [dependencies.syntect] version = "5.1.0" optional = true [dependencies.sys-locale] version = "0.3.1" optional = true [dependencies.ttf-parser] version = "0.20.0" 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", ] no_std = [ "rustybuzz/libm", "hashbrown", ] shape-run-cache = [] std = [ "fontdb/memmap", "fontdb/std", "rustybuzz/std", "sys-locale", "ttf-parser/std", "unicode-bidi/std", ] vi = [ "modit", "syntect", "cosmic_undo_2", ] warn_on_missing_glyphs = [] wasm-web = ["sys-locale?/js"]