Expand description
Third party license management and collection.
§Crate
This crate is part of the zng project.
§Cargo Features
This crate provides 3 feature flags, 0 enabled by default.
§"build"
Include helpers for collecting third-party licenses.
§"bundle"
Deprecated.
§"embed"
Include helpers for deserializing build encoded licenses.
Macros§
- decode_
embedding - Embed the file generated using
write_embeddingand expands to adecode_licensesthat decodes the embedding. - include_
bundle Deprecated - Deprecated
Structs§
- License
- Represents a license id, name and text.
- License
Used - Represents a license and dependencies that use it.
- User
- Represents a project or package that uses a license.
- User
License - Represents a license user with license.
Functions§
- collect_
cargo_ about - Calls
cargo aboutfor the building crate and features. - collect_
cargo_ about_ for - Calls
cargo aboutfor the given crate and features. - decode_
licenses - Decode licenses encoded with
encode_licenses. Note that the encoded format is only guaranteed to work if both encoding and decoding is made with the sameCargo.lockdependencies. - encode_
licenses - Bincode serialize and deflate the licenses.
- merge_
licenses - Merge
licensesintointo. - parse_
cargo_ about - Parse the output of
cargo about. - sort_
licenses - Sort vec by license name, and users of each license by name.
- user_
licenses - Invert data to be keyed by user, also sorts by user name.
- write_
bundle Deprecated - Deprecated
- write_
embedding - Encode licenses and write to the output file that is included by
decode_embedding!.