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 wheneverpython-packaging
is added without
somewhere in the dependency tree.default-features = false - serialization = serde
- spdx-text
-
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
…