no_std support
This commit is contained in:
parent
e95671f68f
commit
268805ba0c
18 changed files with 190 additions and 38 deletions
25
Cargo.toml
25
Cargo.toml
|
|
@ -9,19 +9,34 @@ documentation = "https://docs.rs/cosmic-text/latest/cosmic_text/"
|
|||
repository = "https://github.com/pop-os/cosmic-text"
|
||||
|
||||
[dependencies]
|
||||
fontdb = "0.9.3"
|
||||
fontdb = { version = "0.10", default-features = false }
|
||||
libm = "0.2"
|
||||
log = "0.4"
|
||||
ouroboros = "0.15.5"
|
||||
rustybuzz = "0.5"
|
||||
rustybuzz = { version = "0.5", default-features = false, features = ["libm"]}
|
||||
swash = { version = "0.1", optional = true }
|
||||
sys-locale = "0.2"
|
||||
unicode-bidi = "0.3"
|
||||
sys-locale = { version = "0.2", optional = true }
|
||||
unicode-linebreak = "0.1"
|
||||
unicode-script = "0.5"
|
||||
unicode-segmentation = "1.7"
|
||||
|
||||
[dependencies.unicode-bidi]
|
||||
version = "0.3"
|
||||
default-features = false
|
||||
features = ["hardcoded-data"]
|
||||
|
||||
[features]
|
||||
default = ["swash"]
|
||||
default = ["std", "swash"]
|
||||
no_std = [
|
||||
"rustybuzz/libm",
|
||||
]
|
||||
std = [
|
||||
"fontdb/memmap",
|
||||
"fontdb/std",
|
||||
"rustybuzz/std",
|
||||
"sys-locale",
|
||||
"unicode-bidi/std",
|
||||
]
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue