Cargo Features

[dependencies]
kubernetes-mock = { version = "0.1.0", default-features = false, features = ["v1_25", "v1_21"] }
default = v1_25

The v1_25 feature is set by default whenever kubernetes-mock is added without default-features = false somewhere in the dependency tree.

v1_25 default

Enables v1_25 of k8s-openapi ^0.18.0 and kube ^0.83.0

Dependencies for 1.21/1.25 - optional = true, so only enabled if features v1_21 or v1_25 are set

v1_21

Enables kube ^0.83.0, v1_21 of k8s-openapi ^0.18.0

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.

k8s-openapi v1_21? v1_25

Enables k8s-openapi ^0.18.0