Cargo Features
[dependencies]
c2g = { version = "0.9.0", default-features = false, features = ["include-fonts", "include-svgs"] }
- default = include-fonts, include-svgs
-
These default features are set whenever
c2g
is added without
somewhere in the dependency tree.default-features = false - include-fonts default = include_dir
-
Embeds the fonts directory at compile time. Removes the need to pass a path to a local font when running the CLI.
- include-svgs default = include_dir
-
Embeds the svgs directory at compile time. Removes the need to pass a path to a local directory containing SVG pieces and terminations when running the CLI.
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.