Skip to main content

Crate zng_tp_licenses

Crate zng_tp_licenses 

Source
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_embedding and expands to a decode_licenses that decodes the embedding.
include_bundleDeprecated
Deprecated

Structs§

License
Represents a license id, name and text.
LicenseUsed
Represents a license and dependencies that use it.
User
Represents a project or package that uses a license.
UserLicense
Represents a license user with license.

Functions§

collect_cargo_about
Calls cargo about for the building crate and features.
collect_cargo_about_for
Calls cargo about for 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 same Cargo.lock dependencies.
encode_licenses
Bincode serialize and deflate the licenses.
merge_licenses
Merge licenses into into.
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_bundleDeprecated
Deprecated
write_embedding
Encode licenses and write to the output file that is included by decode_embedding!.