-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot skip ring and md5 #24
Comments
This kind of a duplicate of #16. You need to do a couple of things to properly skip these.
There is #17, feel free to add any suggestions on a config that would be less weird, I will hopefully be doing a lot of changes to cargo-deny next week, so hopefully this can be made better then! (or at least add examples for cases like these) |
hmm, rather complex... ended up with this [licenses]
allow = [
"Panoptix",
"Apache-2.0",
"BSL-1.0",
"BSD-2-Clause",
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause",
"CC0-1.0", # used only by constant_time_eq
"ISC",
"LLVM-exception",
"MIT",
"MPL-2.0",
"Unlicense",
"Unicode-DFS-2016",
"Zlib",
]
skip = [
{ name = "ring", licenses = [] },
{ name = "webpki", licenses = [] },
]
[[licenses.ignore]]
name = "rustls"
license_files = [
{ path = "LICENSE", hash = 0xe567c411 },
]
[[licenses.ignore]]
name = "sct"
license_files = [
{ path = "LICENSE", hash = 0xb7619ae7 },
]
[[licenses.ignore]]
name = "crossbeam-channel"
license_files = [
{ path = "LICENSE-THIRD-PARTY", hash = 0xc6242648 },
]
[[licenses.ignore]]
name = "md5"
license_files = [
{ path = "LICENSE.md", hash = 0xa7154852 },
]
[[licenses.ignore]]
name = "ring"
license_files = [
{ path = "LICENSE", hash = 0xbd0eed23 },
]
[[licenses.ignore]]
name = "rlua"
license_files = [
{ path = "LICENSE", hash = 0xe027ffe4 },
]
[[licenses.ignore]]
name = "sqlite"
license_files = [
{ path = "LICENSE.md", hash = 0xc9f05859 },
]
[[licenses.ignore]]
name = "sqlite3-src"
license_files = [
{ path = "LICENSE.md", hash = 0xc880abc2 },
]
[[licenses.ignore]]
name = "sqlite3-sys"
license_files = [
{ path = "LICENSE.md", hash = 0xd3e3f782 },
]
[[licenses.ignore]]
name = "webpki"
license_files = [
{ path = "LICENSE", hash = 0x1c7e6c },
] |
Thanks for posting your config, there are definitely some of the same one in our main project as well, and it reminded me of #23, which will probably end up following a model similar to the proposed change in #18, ie pulling a git repo with information on specific crates. A similar thing could be done with these more complicated license files so that everyone who uses them doesn't have to have an identical config. |
FYI: I intend to keep https://github.com/briansmith/ring/blob/main/deny.toml up to date with what's necessary to include ring. |
I have a simple deny.toml that only has
allow
. Among my deps is md5 and ring.There seems to be no way to skip them
After that addition, I get this instead:
The text was updated successfully, but these errors were encountered: