Cargo Features

[dependencies]
python-packaging = { version = "0.16.0", default-features = false, features = ["serialization", "spdx-text", "wheel"] }

We make wheel support optional because it has dependencies that we don't want to bloat the dependency tree with.

default = wheel

The wheel feature is set by default whenever python-packaging is added without default-features = false somewhere in the dependency tree.

serialization = serde
spdx-text

Enables text of spdx

spdx:

Includes the full canonical text of each license

wheel default = base64, sha2, time, zip

Affects python-packaging::wheel, python-packaging::wheel_builder

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.

base64 wheel

Enables base64 ^0.20.0

serde serialization?
sha2 wheel
time wheel
zip wheel

Enables zip ^0.6.3

Affects python-packaging::zip_app_builder