-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): Fix docs.rs build + security workflow + standardize badges #8
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,115 @@ | ||
| # cargo-deny configuration for reasonkit-web | ||
| # Security, license, and dependency validation | ||
| # Reference: https://embarkstudios.github.io/cargo-deny/ | ||
| # Compatible with cargo-deny 0.18.x | ||
|
|
||
| [graph] | ||
| targets = [ | ||
| "x86_64-unknown-linux-gnu", | ||
| "x86_64-apple-darwin", | ||
| "aarch64-apple-darwin", | ||
| "x86_64-pc-windows-msvc", | ||
| ] | ||
| all-features = true | ||
|
|
||
| [output] | ||
| feature-depth = 1 | ||
|
|
||
| [advisories] | ||
| # Path where advisory database is cloned | ||
| db-path = "~/.cargo/advisory-dbs" | ||
| # Ignore specific advisories if assessed as non-applicable | ||
| ignore = [ | ||
| # Unmaintained crates - tracking migration in backlog | ||
| { id = "RUSTSEC-2024-0384", reason = "instant crate - used by parking_lot, tracking migration to web-time" }, | ||
| { id = "RUSTSEC-2025-0119", reason = "number_prefix - low risk, used by indicatif, tracking migration" }, | ||
| { id = "RUSTSEC-2024-0436", reason = "paste - used by tokenizers, tracking migration to pastey" }, | ||
| { id = "RUSTSEC-2025-0134", reason = "rustls-pemfile - used by tonic, tracking migration to rustls-pki-types" }, | ||
| ] | ||
|
|
||
| [licenses] | ||
| # Apache 2.0 compatible licenses | ||
| allow = [ | ||
| "MIT", | ||
| "Apache-2.0", | ||
| "Apache-2.0 WITH LLVM-exception", | ||
| "BSD-2-Clause", | ||
| "BSD-3-Clause", | ||
| "ISC", | ||
| "Unicode-DFS-2016", | ||
| "Unicode-3.0", | ||
| "Zlib", | ||
| "CC0-1.0", | ||
| "0BSD", | ||
| "BSL-1.0", | ||
| "MPL-2.0", | ||
| "Unlicense", | ||
| "OpenSSL", # Used by ring crate - permissive license | ||
| ] | ||
| confidence-threshold = 0.8 | ||
|
|
||
| # Exceptions for specific crates | ||
| exceptions = [ | ||
| # ring uses a complex license expression | ||
| { allow = ["ISC", "MIT", "OpenSSL"], crate = "ring" }, | ||
| ] | ||
|
|
||
| [licenses.private] | ||
| # Ignore unpublished workspace crates | ||
| ignore = true | ||
| registries = [] | ||
|
|
||
| # License clarifications for crates with non-standard license files | ||
| [[licenses.clarify]] | ||
| crate = "ring" | ||
| expression = "ISC AND MIT AND OpenSSL" | ||
| license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }] | ||
|
|
||
| [[licenses.clarify]] | ||
| crate = "webpki" | ||
| expression = "ISC" | ||
| license-files = [{ path = "LICENSE", hash = 0x001c7e6c }] | ||
|
|
||
| [[licenses.clarify]] | ||
| crate = "rustls-webpki" | ||
| expression = "ISC" | ||
| license-files = [{ path = "LICENSE", hash = 0x001c7e6c }] | ||
|
|
||
| [bans] | ||
| # Dependency banning and duplicate detection | ||
| multiple-versions = "warn" | ||
| wildcards = "deny" | ||
| highlight = "all" | ||
| workspace-default-features = "allow" | ||
| external-default-features = "allow" | ||
|
|
||
| # Ban certain crates we want to avoid | ||
| deny = [ | ||
| # Deprecated crates | ||
| { crate = "rustc-serialize", reason = "Use serde instead" }, | ||
| { crate = "quickersort", reason = "Use standard library sort" }, | ||
| { crate = "failure", reason = "Use thiserror or anyhow" }, | ||
| { crate = "error-chain", reason = "Use thiserror or anyhow" }, | ||
| { crate = "tempdir", reason = "Use tempfile instead" }, | ||
| { crate = "term", reason = "Use termcolor or crossterm" }, | ||
| { crate = "gcc", reason = "Use cc instead" }, | ||
| ] | ||
|
|
||
| # Skip checking these crates for duplicates | ||
| skip = [] | ||
|
|
||
| # Skip trees rooted at these crates | ||
| skip-tree = [] | ||
|
|
||
| [sources] | ||
| # Source code origin validation | ||
| unknown-registry = "deny" | ||
| unknown-git = "warn" | ||
| allow-registry = ["https://github.com/rust-lang/crates.io-index"] | ||
| allow-git = [] | ||
|
|
||
| [sources.allow-org] | ||
| # Allow GitHub organizations | ||
| github = [] | ||
| gitlab = [] | ||
| bitbucket = [] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
all-features = truesetting in the graph configuration will enable thewasmfeature, which requires thewasm32target that is not included in the targets list. This is inconsistent with the CI workflow change that specifically avoids wasm features. Consider either:features = ["full"]to match the CI and docs.rs configuration, orwasm32-unknown-unknownto the targets list if wasm support is needed for cargo-deny checks.