Improve cargo about licenses configuration (#24997)

* Remove unneeded accepted licenses

* Removes use of `workarounds`

  - `wasmtime` no longer needed in list

  - `ring` now checks the license SHA

* Checks license from `files` instead of from `git`. Execution time ~17s
instead of ~24s

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-02-17 00:18:03 -07:00 committed by GitHub
parent bcba0b92ed
commit 3b5dad8a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,19 +10,13 @@ accepted = [
"ISC", "ISC",
"CC0-1.0", "CC0-1.0",
"Unicode-3.0", "Unicode-3.0",
"Unicode-DFS-2016",
"OpenSSL", "OpenSSL",
"Zlib", "Zlib",
"BSL-1.0"
]
workarounds = [
"ring",
"wasmtime",
] ]
[procinfo.clarify] [procinfo.clarify]
license = "MIT" license = "MIT"
[[procinfo.clarify.git]] [[procinfo.clarify.files]]
path = 'LICENSE.md' path = 'LICENSE.md'
checksum = '37db33bbbd7348969eda397b89a16f252d56c1ca7481b6ccaf56ccdcbab5dcca' checksum = '37db33bbbd7348969eda397b89a16f252d56c1ca7481b6ccaf56ccdcbab5dcca'
@ -40,144 +34,150 @@ checksum = '03b114f53e6587a398931762ee11e2395bfdba252a329940e2c8c9e81813845b'
[pet.clarify] [pet.clarify]
license = "MIT" license = "MIT"
[[pet.clarify.git]] [[pet.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-conda.clarify] [pet-conda.clarify]
license = "MIT" license = "MIT"
[[pet-conda.clarify.git]] [[pet-conda.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-core.clarify] [pet-core.clarify]
license = "MIT" license = "MIT"
[[pet-core.clarify.git]] [[pet-core.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-env-var-path.clarify] [pet-env-var-path.clarify]
license = "MIT" license = "MIT"
[[pet-env-var-path.clarify.git]] [[pet-env-var-path.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-fs.clarify] [pet-fs.clarify]
license = "MIT" license = "MIT"
[[pet-fs.clarify.git]] [[pet-fs.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-global-virtualenvs.clarify] [pet-global-virtualenvs.clarify]
license = "MIT" license = "MIT"
[[pet-global-virtualenvs.clarify.git]] [[pet-global-virtualenvs.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-homebrew.clarify] [pet-homebrew.clarify]
license = "MIT" license = "MIT"
[[pet-homebrew.clarify.git]] [[pet-homebrew.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-jsonrpc.clarify] [pet-jsonrpc.clarify]
license = "MIT" license = "MIT"
[[pet-jsonrpc.clarify.git]] [[pet-jsonrpc.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-linux-global-python.clarify] [pet-linux-global-python.clarify]
license = "MIT" license = "MIT"
[[pet-linux-global-python.clarify.git]] [[pet-linux-global-python.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-mac-commandlinetools.clarify] [pet-mac-commandlinetools.clarify]
license = "MIT" license = "MIT"
[[pet-mac-commandlinetools.clarify.git]] [[pet-mac-commandlinetools.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-mac-python-org.clarify] [pet-mac-python-org.clarify]
license = "MIT" license = "MIT"
[[pet-mac-python-org.clarify.git]] [[pet-mac-python-org.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-mac-xcode.clarify] [pet-mac-xcode.clarify]
license = "MIT" license = "MIT"
[[pet-mac-xcode.clarify.git]] [[pet-mac-xcode.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-pipenv.clarify] [pet-pipenv.clarify]
license = "MIT" license = "MIT"
[[pet-pipenv.clarify.git]] [[pet-pipenv.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-pixi.clarify] [pet-pixi.clarify]
license = "MIT" license = "MIT"
[[pet-pixi.clarify.git]] [[pet-pixi.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-poetry.clarify] [pet-poetry.clarify]
license = "MIT" license = "MIT"
[[pet-poetry.clarify.git]] [[pet-poetry.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-pyenv.clarify] [pet-pyenv.clarify]
license = "MIT" license = "MIT"
[[pet-pyenv.clarify.git]] [[pet-pyenv.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-python-utils.clarify] [pet-python-utils.clarify]
license = "MIT" license = "MIT"
[[pet-python-utils.clarify.git]] [[pet-python-utils.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-reporter.clarify] [pet-reporter.clarify]
license = "MIT" license = "MIT"
[[pet-reporter.clarify.git]] [[pet-reporter.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-telemetry.clarify] [pet-telemetry.clarify]
license = "MIT" license = "MIT"
[[pet-telemetry.clarify.git]] [[pet-telemetry.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-venv.clarify] [pet-venv.clarify]
license = "MIT" license = "MIT"
[[pet-venv.clarify.git]] [[pet-venv.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-virtualenv.clarify] [pet-virtualenv.clarify]
license = "MIT" license = "MIT"
[[pet-virtualenv.clarify.git]] [[pet-virtualenv.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-virtualenvwrapper.clarify] [pet-virtualenvwrapper.clarify]
license = "MIT" license = "MIT"
[[pet-virtualenvwrapper.clarify.git]] [[pet-virtualenvwrapper.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-windows-registry.clarify] [pet-windows-registry.clarify]
license = "MIT" license = "MIT"
[[pet-windows-registry.clarify.git]] [[pet-windows-registry.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[pet-windows-store.clarify] [pet-windows-store.clarify]
license = "MIT" license = "MIT"
[[pet-windows-store.clarify.git]] [[pet-windows-store.clarify.files]]
path = 'LICENSE' path = '../../LICENSE'
checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383' checksum = 'c2cfccb812fe482101a8f04597dfc5a9991a6b2748266c47ac91b6a5aae15383'
[ring.clarify]
license = "ISC AND OpenSSL"
[[ring.clarify.files]]
path = 'LICENSE'
checksum = '76b39f9b371688eac9d8323f96ee80b3aef5ecbc2217f25377bd4e4a615296a9'