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 default-features = false somewhere in the dependency tree.

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.

include_dir include-fonts include-svgs

Enables include_dir ^0.6