From 99ef9883106399102d0cac87f82dc07b6080a3eb Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 13:04:32 +0100 Subject: [PATCH 01/20] not formatted --- src/balances.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/balances.rs b/src/balances.rs index 947ad84..71cb4dc 100644 --- a/src/balances.rs +++ b/src/balances.rs @@ -15,7 +15,7 @@ pub trait Config: crate::system::Config { #[derive(Debug)] pub struct Pallet { // A simple storage mapping from accounts to their balances. - balances: BTreeMap, + balances: BTreeMap, } impl Pallet { From 222283eaeb1732716e2cb56425d8241293bda62d Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 13:26:35 +0100 Subject: [PATCH 02/20] Removes toolchain update command --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bbe559..e71542c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,5 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Update Rust toolchain - run: actions-rust-lang/setup-rust-toolchain@v1 - name: Check formatting run: cargo fmt --check --all From 1f877e27f56286ca3fc929ed7ff9f90ac708e7f0 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 18:34:12 +0100 Subject: [PATCH 03/20] formatted --- src/balances.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/balances.rs b/src/balances.rs index 71cb4dc..947ad84 100644 --- a/src/balances.rs +++ b/src/balances.rs @@ -15,7 +15,7 @@ pub trait Config: crate::system::Config { #[derive(Debug)] pub struct Pallet { // A simple storage mapping from accounts to their balances. - balances: BTreeMap, + balances: BTreeMap, } impl Pallet { From 0d71bdf7170137b0b72a2c4db8471dc9726ce7c7 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 19:12:53 +0100 Subject: [PATCH 04/20] testing clipply --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index d2e384e..b1153ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,6 +5,11 @@ mod system; use crate::support::Dispatch; +let a = 0; +let b = 1; +let c = 2; +if c>= 1 + 3 {} + // These are the concrete types we will use in our simple state machine. // Modules are configured for these types directly, and they satisfy all of our // trait requirements. From 35fe3a65760aaf0d4f5d722b17d814475581f221 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 19:24:35 +0100 Subject: [PATCH 05/20] Removes Rust toolchain update --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76d580d..7a34046 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Update Rust toolchain - run: actions-rust-lang/setup-rust-toolchain@v1 - name: Check Cargo Clippy run: cargo clippy --all-targets --all-features -- -D warnings - name: Check formatting From 3767cb2a75acd444b0c3ba7bfe0bf9292e03f935 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 19:49:37 +0100 Subject: [PATCH 06/20] Fixes the link --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index b1153ee..bb1a3ed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,10 +5,10 @@ mod system; use crate::support::Dispatch; -let a = 0; -let b = 1; -let c = 2; -if c>= 1 + 3 {} +cont a = 0; +const b = 1; +const c = 2; +if c > 3 {} // These are the concrete types we will use in our simple state machine. // Modules are configured for these types directly, and they satisfy all of our From 92c43ad893d308a332123f1f8add7a1bba4480dc Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 19:52:50 +0100 Subject: [PATCH 07/20] Fixes variable definition --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index bb1a3ed..52da437 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ mod system; use crate::support::Dispatch; -cont a = 0; +const a = 0; const b = 1; const c = 2; if c > 3 {} From fd8709433a222a5ebe2f2a3097f8c799dbb48948 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 19:56:30 +0100 Subject: [PATCH 08/20] Modifies clippy action --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a34046..9f5f168 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Check Cargo Clippy - run: cargo clippy --all-targets --all-features -- -D warnings + run: cargo clippy --all-targets --all-features - name: Check formatting run: cargo fmt --check --all From efce317b545ed94d82327ff0fe5928c899fc3bd0 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Sat, 23 Nov 2024 22:13:35 +0100 Subject: [PATCH 09/20] Trigger CI From 07d1821ba548592b2756642b90a8bac22084a7e3 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Mon, 16 Dec 2024 19:40:30 +0100 Subject: [PATCH 10/20] Need to merge --- .DS_Store | Bin 6148 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.DS_Store b/.DS_Store index 16280c9cdb1c4849949575294f4211e8b7c1e118..da20afaf3a85dd69a3724beb118ee8af58e7f6d1 100644 GIT binary patch delta 376 zcmZoMXfc@J&nUVvU^g?P=wu!i$$G~54;UC2SQzve(it)tN^l`qIJ3{K9^Edc6aVBnnqBH3YPGh{H7G9=}sBdK7hXKcY#g6s&-$zq&M z6<|l88I+rka0+f!C=Ox}06B<@!I>eEp$O>Ve1^%BS*C|O%>#-uGZX{Gl9BDM*_V(8 a4FI?-!cI(CRJ#&3H?n?X+|17LmmdIM#aFce delta 218 zcmZoMXfc@J&nUPtU^g?P;A9>a$vB1&KNuJoSQzve(it)tN^l`qIJ3{K9^Edc6aU|@SNS(tTsxaU_Oo0*}Qp@< Date: Mon, 16 Dec 2024 22:10:59 +0100 Subject: [PATCH 11/20] Check test --- .github/workflows/ci.yml | 8 ++++++++ src/balances.rs | 2 +- src/main.rs | 5 ----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53d486d..81feb02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,4 +25,12 @@ jobs: uses: actions/checkout@v4 - name: Check Clippy run: cargo clippy --all-targets --all-features --workspace -- -D warnings + + test: + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Check Test + run: cargo test diff --git a/src/balances.rs b/src/balances.rs index 947ad84..81d9e8a 100644 --- a/src/balances.rs +++ b/src/balances.rs @@ -102,7 +102,7 @@ mod tests { fn init_balances() { let mut balances = super::Pallet::::new(); - assert_eq!(balances.balance(&"alice".to_string()), 0); + assert_eq!(balances.balance(&"alice".to_string()), 1); balances.set_balance(&"alice".to_string(), 100); assert_eq!(balances.balance(&"alice".to_string()), 100); assert_eq!(balances.balance(&"bob".to_string()), 0); diff --git a/src/main.rs b/src/main.rs index 52da437..d2e384e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,11 +5,6 @@ mod system; use crate::support::Dispatch; -const a = 0; -const b = 1; -const c = 2; -if c > 3 {} - // These are the concrete types we will use in our simple state machine. // Modules are configured for these types directly, and they satisfy all of our // trait requirements. From feddfa563652c502dbe233ee44d5e6d1d10a8500 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Mon, 16 Dec 2024 22:47:53 +0100 Subject: [PATCH 12/20] Changes 'Update Rust toolchain' command --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81feb02..65baf9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - name: Update Rust toolchain - run: actions-rust-lang/setup-rust-toolchain@v1 + run: rustup update stable --no-self-update - name: Check formatting run: cargo fmt --check --all From d5ad9cf8113c4f9fd5fc6518b3f681ac6e7ead98 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Mon, 16 Dec 2024 22:56:28 +0100 Subject: [PATCH 13/20] Refixed test --- src/balances.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/balances.rs b/src/balances.rs index 81d9e8a..947ad84 100644 --- a/src/balances.rs +++ b/src/balances.rs @@ -102,7 +102,7 @@ mod tests { fn init_balances() { let mut balances = super::Pallet::::new(); - assert_eq!(balances.balance(&"alice".to_string()), 1); + assert_eq!(balances.balance(&"alice".to_string()), 0); balances.set_balance(&"alice".to_string(), 100); assert_eq!(balances.balance(&"alice".to_string()), 100); assert_eq!(balances.balance(&"bob".to_string()), 0); From 417b76148fa085c17db892e7ce804b465e2944cf Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Tue, 17 Dec 2024 20:53:23 +0100 Subject: [PATCH 14/20] Run test 1 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65baf9a..08977bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Check Test + - name: Update Rust toolchain + run: rustup update stable --no-self-update + - name: Run test run: cargo test From 54fd35697384e887381dde622e1a2cb5fd153f9d Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Tue, 17 Dec 2024 20:55:43 +0100 Subject: [PATCH 15/20] Run test 2 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08977bf..b0bc055 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Update Rust toolchain - run: rustup update stable --no-self-update + - name: Update Rust toolchain + run: rustup update stable --no-self-update - name: Run test run: cargo test From 5ab4552c47b48ad372eba99fde8b23f4d552a403 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Wed, 18 Dec 2024 21:41:25 +0100 Subject: [PATCH 16/20] Check docs --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0bc055..402de9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,5 +34,17 @@ jobs: - name: Update Rust toolchain run: rustup update stable --no-self-update - name: Run test - run: cargo test + run: cargo test --all-features --workspace + + doc: + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Update Rust toolchain + run: rustup update stable --no-self-update + - name: Check docs + run: cargo doc + env: + RUSTDOCFLAGS: -D warnings From a5f14a015d894a3ae18927c7627556753c567a02 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Thu, 19 Dec 2024 17:07:39 +0100 Subject: [PATCH 17/20] Cargo deny init --- .github/workflows/ci.yml | 5 +- deny.toml | 235 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 238 insertions(+), 2 deletions(-) create mode 100644 deny.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 402de9f..1b62f54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,8 +43,9 @@ jobs: uses: actions/checkout@v4 - name: Update Rust toolchain run: rustup update stable --no-self-update - - name: Check docs - run: cargo doc + - name: Check documentation env: RUSTDOCFLAGS: -D warnings + run: + cargo doc --no-deps --document-private-items --all-features --workspace --examples diff --git a/deny.toml b/deny.toml new file mode 100644 index 0000000..bd776cf --- /dev/null +++ b/deny.toml @@ -0,0 +1,235 @@ +# This template contains all of the possible sections and their default values + +# Note that all fields that take a lint level have these possible values: +# * deny - An error will be produced and the check will fail +# * warn - A warning will be produced, but the check will not fail +# * allow - No warning or error will be produced, though in some cases a note +# will be + +# The values provided in this template are the default values that will be used +# when any section or field is not specified in your own configuration + +# Root options + +# The graph table configures how the dependency graph is constructed and thus +# which crates the checks are performed against +[graph] +# If 1 or more target triples (and optionally, target_features) are specified, +# only the specified targets will be checked when running `cargo deny check`. +# This means, if a particular package is only ever used as a target specific +# dependency, such as, for example, the `nix` crate only being used via the +# `target_family = "unix"` configuration, that only having windows targets in +# this list would mean the nix crate, as well as any of its exclusive +# dependencies not shared by any other crates, would be ignored, as the target +# list here is effectively saying which targets you are building for. +targets = [ + # The triple can be any string, but only the target triples built in to + # rustc (as of 1.40) can be checked against actual config expressions + #"x86_64-unknown-linux-musl", + # You can also specify which target_features you promise are enabled for a + # particular target. target_features are currently not validated against + # the actual valid features supported by the target architecture. + #{ triple = "wasm32-unknown-unknown", features = ["atomics"] }, +] +# When creating the dependency graph used as the source of truth when checks are +# executed, this field can be used to prune crates from the graph, removing them +# from the view of cargo-deny. This is an extremely heavy hammer, as if a crate +# is pruned from the graph, all of its dependencies will also be pruned unless +# they are connected to another crate in the graph that hasn't been pruned, +# so it should be used with care. The identifiers are [Package ID Specifications] +# (https://doc.rust-lang.org/cargo/reference/pkgid-spec.html) +#exclude = [] +# If true, metadata will be collected with `--all-features`. Note that this can't +# be toggled off if true, if you want to conditionally enable `--all-features` it +# is recommended to pass `--all-features` on the cmd line instead +all-features = false +# If true, metadata will be collected with `--no-default-features`. The same +# caveat with `all-features` applies +no-default-features = false +# If set, these feature will be enabled when collecting metadata. If `--features` +# is specified on the cmd line they will take precedence over this option. +#features = [] + +# The output table provides options for how/if diagnostics are outputted +[output] +# When outputting inclusion graphs in diagnostics that include features, this +# option can be used to specify the depth at which feature edges will be added. +# This option is included since the graphs can be quite large and the addition +# of features from the crate(s) to all of the graph roots can be far too verbose. +# This option can be overridden via `--feature-depth` on the cmd line +feature-depth = 1 + +# This section is considered when running `cargo deny check advisories` +# More documentation for the advisories section can be found here: +# https://embarkstudios.github.io/cargo-deny/checks/advisories/cfg.html +[advisories] +# The path where the advisory databases are cloned/fetched into +#db-path = "$CARGO_HOME/advisory-dbs" +# The url(s) of the advisory databases to use +#db-urls = ["https://github.com/rustsec/advisory-db"] +# A list of advisory IDs to ignore. Note that ignored advisories will still +# output a note when they are encountered. +ignore = [ + #"RUSTSEC-0000-0000", + #{ id = "RUSTSEC-0000-0000", reason = "you can specify a reason the advisory is ignored" }, + #"a-crate-that-is-yanked@0.1.1", # you can also ignore yanked crate versions if you wish + #{ crate = "a-crate-that-is-yanked@0.1.1", reason = "you can specify why you are ignoring the yanked crate" }, +] +# If this is true, then cargo deny will use the git executable to fetch advisory database. +# If this is false, then it uses a built-in git library. +# Setting this to true can be helpful if you have special authentication requirements that cargo-deny does not support. +# See Git Authentication for more information about setting up git authentication. +#git-fetch-with-cli = true + +# This section is considered when running `cargo deny check licenses` +# More documentation for the licenses section can be found here: +# https://embarkstudios.github.io/cargo-deny/checks/licenses/cfg.html +[licenses] +# List of explicitly allowed licenses +# See https://spdx.org/licenses/ for list of possible licenses +# [possible values: any SPDX 3.11 short identifier (+ optional exception)]. +allow = [ + #"MIT", + #"Apache-2.0", + #"Apache-2.0 WITH LLVM-exception", +] +# The confidence threshold for detecting a license from license text. +# The higher the value, the more closely the license text must be to the +# canonical license text of a valid SPDX license file. +# [possible values: any between 0.0 and 1.0]. +confidence-threshold = 0.8 +# Allow 1 or more licenses on a per-crate basis, so that particular licenses +# aren't accepted for every possible crate as with the normal allow list +exceptions = [ + # Each entry is the crate and version constraint, and its specific allow + # list + #{ allow = ["Zlib"], crate = "adler32" }, +] + +# Some crates don't have (easily) machine readable licensing information, +# adding a clarification entry for it allows you to manually specify the +# licensing information +#[[licenses.clarify]] +# The package spec the clarification applies to +#crate = "ring" +# The SPDX expression for the license requirements of the crate +#expression = "MIT AND ISC AND OpenSSL" +# One or more files in the crate's source used as the "source of truth" for +# the license expression. If the contents match, the clarification will be used +# when running the license check, otherwise the clarification will be ignored +# and the crate will be checked normally, which may produce warnings or errors +# depending on the rest of your configuration +#license-files = [ +# Each entry is a crate relative path, and the (opaque) hash of its contents +#{ path = "LICENSE", hash = 0xbd0eed23 } +#] + +[licenses.private] +# If true, ignores workspace crates that aren't published, or are only +# published to private registries. +# To see how to mark a crate as unpublished (to the official registry), +# visit https://doc.rust-lang.org/cargo/reference/manifest.html#the-publish-field. +ignore = false +# One or more private registries that you might publish crates to, if a crate +# is only published to private registries, and ignore is true, the crate will +# not have its license(s) checked +registries = [ + #"https://sekretz.com/registry +] + +# This section is considered when running `cargo deny check bans`. +# More documentation about the 'bans' section can be found here: +# https://embarkstudios.github.io/cargo-deny/checks/bans/cfg.html +[bans] +# Lint level for when multiple versions of the same crate are detected +multiple-versions = "warn" +# Lint level for when a crate version requirement is `*` +wildcards = "allow" +# The graph highlighting used when creating dotgraphs for crates +# with multiple versions +# * lowest-version - The path to the lowest versioned duplicate is highlighted +# * simplest-path - The path to the version with the fewest edges is highlighted +# * all - Both lowest-version and simplest-path are used +highlight = "all" +# The default lint level for `default` features for crates that are members of +# the workspace that is being checked. This can be overridden by allowing/denying +# `default` on a crate-by-crate basis if desired. +workspace-default-features = "allow" +# The default lint level for `default` features for external crates that are not +# members of the workspace. This can be overridden by allowing/denying `default` +# on a crate-by-crate basis if desired. +external-default-features = "allow" +# List of crates that are allowed. Use with care! +allow = [ + #"ansi_term@0.11.0", + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is allowed" }, +] +# List of crates to deny +deny = [ + #"ansi_term@0.11.0", + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason it is banned" }, + # Wrapper crates can optionally be specified to allow the crate when it + # is a direct dependency of the otherwise banned crate + #{ crate = "ansi_term@0.11.0", wrappers = ["this-crate-directly-depends-on-ansi_term"] }, +] + +# List of features to allow/deny +# Each entry the name of a crate and a version range. If version is +# not specified, all versions will be matched. +#[[bans.features]] +#crate = "reqwest" +# Features to not allow +#deny = ["json"] +# Features to allow +#allow = [ +# "rustls", +# "__rustls", +# "__tls", +# "hyper-rustls", +# "rustls", +# "rustls-pemfile", +# "rustls-tls-webpki-roots", +# "tokio-rustls", +# "webpki-roots", +#] +# If true, the allowed features must exactly match the enabled feature set. If +# this is set there is no point setting `deny` +#exact = true + +# Certain crates/versions that will be skipped when doing duplicate detection. +skip = [ + #"ansi_term@0.11.0", + #{ crate = "ansi_term@0.11.0", reason = "you can specify a reason why it can't be updated/removed" }, +] +# Similarly to `skip` allows you to skip certain crates during duplicate +# detection. Unlike skip, it also includes the entire tree of transitive +# dependencies starting at the specified crate, up to a certain depth, which is +# by default infinite. +skip-tree = [ + #"ansi_term@0.11.0", # will be skipped along with _all_ of its direct and transitive dependencies + #{ crate = "ansi_term@0.11.0", depth = 20 }, +] + +# This section is considered when running `cargo deny check sources`. +# More documentation about the 'sources' section can be found here: +# https://embarkstudios.github.io/cargo-deny/checks/sources/cfg.html +[sources] +# Lint level for what to happen when a crate from a crate registry that is not +# in the allow list is encountered +unknown-registry = "warn" +# Lint level for what to happen when a crate from a git repository that is not +# in the allow list is encountered +unknown-git = "warn" +# List of URLs for allowed crate registries. Defaults to the crates.io index +# if not specified. If it is specified but empty, no registries are allowed. +allow-registry = ["https://github.com/rust-lang/crates.io-index"] +# List of URLs for allowed Git repositories +allow-git = [] + +[sources.allow-org] +# github.com organizations to allow git sources for +github = [] +# gitlab.com organizations to allow git sources for +gitlab = [] +# bitbucket.org organizations to allow git sources for +bitbucket = [] From da82f0d297bf560fa60debc0e84543c7a5ab2afd Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Thu, 19 Dec 2024 17:30:27 +0100 Subject: [PATCH 18/20] Allow Apache-2.0 --- deny.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deny.toml b/deny.toml index bd776cf..87cecf6 100644 --- a/deny.toml +++ b/deny.toml @@ -90,7 +90,7 @@ ignore = [ # [possible values: any SPDX 3.11 short identifier (+ optional exception)]. allow = [ #"MIT", - #"Apache-2.0", + "Apache-2.0", #"Apache-2.0 WITH LLVM-exception", ] # The confidence threshold for detecting a license from license text. From 48f906b70bfabe3944c6f49077fffb2ba822e180 Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Thu, 19 Dec 2024 18:24:40 +0100 Subject: [PATCH 19/20] ci: add cargo deny --- .github/workflows/deny.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/deny.yml diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml new file mode 100644 index 0000000..694c022 --- /dev/null +++ b/.github/workflows/deny.yml @@ -0,0 +1,11 @@ +name: Deny + +on: + pull_request: + +jobs: + deny: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: EmbarkStudios/cargo-deny-action@v2 \ No newline at end of file From 7ba8a85f2364bff6e1a941b00eabae45b1226c8b Mon Sep 17 00:00:00 2001 From: Femi Olah Date: Thu, 19 Dec 2024 21:15:36 +0100 Subject: [PATCH 20/20] run cargo deny every day --- .github/workflows/deny.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 694c022..2666340 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -2,6 +2,9 @@ name: Deny on: pull_request: + schedule: + # Runs at 00:00 UTC every day + - cron: '0 0 * * *' jobs: deny: