Cargo Features
[dependencies]
usvgr = { version = "0.43.2", default-features = false, features = ["text", "system-fonts", "memmap-fonts", "proc-macro"] }
- default = memmap-fonts, system-fonts, text
-
These default features are set whenever
usvgr
is added without
somewhere in the dependency tree.default-features = false - text default = fontdb, rustybuzz, unicode-bidi, unicode-script, unicode-vo
-
Enables text-to-path conversion support.
Adds around 400KiB to your binary.Affects
converter::Cache.usvgr_text_cache
…Required by the binary
- system-fonts default
-
Enables system fonts loading.
Enables fontconfig and fs of fontdb ^0.16.1
text
Required by the binary
- memmap-fonts default
-
Enables font files memmaping for faster loading.
Enables memmap of fontdb ^0.16.1
Required by the binary
- proc-macro = quote, self-rust-tokenize
-
Enables support for inlining svgtrees in proc macro
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.