Cargo Features
[dependencies]
usvg = { version = "0.44.0", default-features = false, features = ["text", "system-fonts", "memmap-fonts"] }
- default = memmap-fonts, system-fonts, text
-
These default features are set whenever
usvg
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.fontdb
,options::Options.font_resolver
,options::Options.fontdb
…Required by the binary
- system-fonts default
-
Enables system fonts loading.
Enables fontconfig and fs of fontdb ^0.22.0
text
Required by the binary
- memmap-fonts default
-
Enables font files memmaping for faster loading.
Enables memmap of fontdb ^0.22.0
Required by the binary
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.