Cargo Features
[dependencies]
derive-adhoc = { version = "0.8.4", default-features = false, features = ["full", "minimal-1", "case", "expect"] }
After editing this file, you will probably need to run maint/update-bizarre
to update the "bizarre" testing versions in tests/pub-export/bizarre-*
- default = full
-
The
full
feature is set by default wheneverderive-adhoc
is added without
somewhere in the dependency tree.default-features = false - full default = case, expect, minimal-1
- minimal-1 full
- case full = heck
-
The minimal-1 feature is mandatory.
This apporach will allow us to move things from "always enabled" to "part of some feature that can be disabled" without a semver break:
Introduce "minimal-2" which excludes the newly-disablable code,
but retain it in "minimal-1".Enables case of derive-adhoc-macros
- expect full
-
Enables expect of derive-adhoc-macros
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.