Cargo Features

SPDX has no features set by default.

[dependencies]
spdx = { version = "0.13.3", features = ["std", "text", "detection", "detection-cache", "detection-inline-cache", "detection-parallel"] }
std detection? detection-cache? detection-inline-cache? detection-parallel?

Enables std of optional regex and optional unicode-normalization

regex:

ECOSYSTEM FEATURES

The 'std' feature permits the regex crate to use the standard library. This is intended to support future use cases where the regex crate may be able to compile without std, and instead just rely on 'core' and 'alloc' (for example). Currently, this isn't supported, and removing the 'std' feature will prevent regex from compiling.

text

Includes the full canonical text of each license

Affects spdx::text

detection detection-cache? detection-parallel? = regex, std, unicode-normalization

Allows analysis of text to determine if it might be an SPDX license text

Affects spdx::detection

detection-cache detection-inline-cache? = detection, std, zstd

Allows de/serialization of a spdx::detection::Store for quicker loading

detection-inline-cache = detection-cache, std

Inlines a cache into this crate, which contains all of the licenses from the SPDX license list that the crate version was packaged with

detection-parallel = detection, rayon, std

Performs license detection in parallel within the same text

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.

rayon detection-parallel?
regex detection?
unicode-normalization detection?
zstd detection-cache?