Function zng_tp_licenses::collect_cargo_about
source · pub fn collect_cargo_about(about_cfg_path: &str) -> Vec<LicenseUsed>
Expand description
Calls cargo about
for the crate.
This method must be used in build scripts (build.rs
).
Returns an empty vec if the DOCS_RS
env var is set to any value or if ZNG_TP_LICENSES=false
is set.
§Panics
Panics for any error, including cargo about
errors and JSON deserialization errors.