183 lines
3.3 KiB
TOML
183 lines
3.3 KiB
TOML
# 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.75"
|
|
name = "cosmic-text"
|
|
version = "0.13.2"
|
|
authors = ["Jeremy Soller <jeremy@system76.com>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
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
|
|
|
|
[lib]
|
|
name = "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"
|
|
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.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.smol_str]
|
|
version = "0.2.2"
|
|
default-features = false
|
|
|
|
[dependencies.swash]
|
|
version = "0.2.0"
|
|
features = [
|
|
"render",
|
|
"scale",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[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",
|
|
"swash?/std",
|
|
"sys-locale",
|
|
"ttf-parser/std",
|
|
"unicode-bidi/std",
|
|
]
|
|
vi = [
|
|
"modit",
|
|
"syntect",
|
|
"cosmic_undo_2",
|
|
]
|
|
warn_on_missing_glyphs = []
|
|
wasm-web = ["sys-locale?/js"]
|