Lines Matching refs:cargo_license
158 def decide_license_type(cargo_license): argument
180 if "Apache" in cargo_license:
182 if "MIT" in cargo_license:
184 if "BSD" in cargo_license:
186 if "ISC" in cargo_license:
280 cargo_license = ""
289 elif not cargo_license and LICENSE_MATCHER.match(line):
290 cargo_license = LICENSE_MATCHER.match(line).group(1)
291 if name and version and description and cargo_license:
293 return name, version, description, cargo_license
305 name, version, description, cargo_license = parse_cargo_toml(cargo)
309 print("### Cargo.toml license:", cargo_license)
310 licenses = decide_license_type(cargo_license)