Cargo Features
[dependencies]
derive-deftly = { version = "0.14.2", default-features = false, features = ["full", "full-msrv-1.56", "minimal-1", "case", "expect", "meta-as-expr", "meta-as-items"] }
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-deftly
is added without
somewhere in the dependency tree.default-features = false - full default = full-msrv-1.56
- full-msrv-1.56 full = case, expect, meta-as-expr, meta-as-items, minimal-1
- minimal-1 full-msrv-1.56?
- case full-msrv-1.56? = 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-deftly-macros
- expect full-msrv-1.56?
-
Enables expect of derive-deftly-macros
- meta-as-expr full-msrv-1.56?
-
Enables meta-as-expr of derive-deftly-macros
- meta-as-items full-msrv-1.56?
-
Enables meta-as-items of derive-deftly-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.