Cargo Features
[dependencies]
petr-api = { version = "0.1.0", default-features = false, features = ["no_std", "debug", "fancy", "petr-pkg", "termcolor"] }
- default = petr-pkg, termcolor
-
These default features are set whenever
petr-api
is added without
somewhere in the dependency tree.default-features = false Enables miette ^5.10, petr-resolve, and petr-utils
- no_std
-
Enables miette ^5.10, petr-resolve, and petr-utils
- debug
-
Enables debug of petr-resolve and petr-utils
- fancy
-
Enables fancy of miette ^5.10
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.