diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 354678d..56f7a5b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -11,6 +11,6 @@ jobs: - name: Build Nix packages for dev shell run: nix develop -c $SHELL -c "rustc --version --verbose" - name: Run fmt - run: nix develop -c $SHELL -c "script-holochain-tests-static-fmt" + run: nix develop -c cargo fmt --all -- --check - name: Run clippy - run: nix develop -c $SHELL -c "script-holochain-tests-static-clippy" + run: nix develop -c cargo clippy --all -- --deny warnings diff --git a/Cargo.toml b/Cargo.toml index c5e9ef4..3f40795 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,10 @@ members = [ [profile.release] debug = true + +[workspace.lints.clippy] +style = "deny" +complexity = "deny" +perf = "deny" +correctness = "deny" +dbg_macro = "deny" diff --git a/crates/holochain_serialized_bytes/Cargo.toml b/crates/holochain_serialized_bytes/Cargo.toml index 766980d..e9d9cb4 100644 --- a/crates/holochain_serialized_bytes/Cargo.toml +++ b/crates/holochain_serialized_bytes/Cargo.toml @@ -38,3 +38,6 @@ harness = false fuzzing = ["arbitrary", "proptest", "proptest-derive"] trace = ["tracing"] + +[lints] +workspace = true diff --git a/crates/holochain_serialized_bytes_derive/Cargo.toml b/crates/holochain_serialized_bytes_derive/Cargo.toml index b33ea8f..a830016 100644 --- a/crates/holochain_serialized_bytes_derive/Cargo.toml +++ b/crates/holochain_serialized_bytes_derive/Cargo.toml @@ -17,3 +17,6 @@ proc-macro = true [dependencies] syn = "1.0" quote = "1.0" + +[lints] +workspace = true diff --git a/flake.lock b/flake.lock index 8cd2827..66f891d 100644 --- a/flake.lock +++ b/flake.lock @@ -141,16 +141,16 @@ "holochain": { "flake": false, "locked": { - "lastModified": 1712161287, - "narHash": "sha256-izcly9+JWv15F70SK5DcyZyuMomO4+HmvoQ0CWh3J3M=", + "lastModified": 1712710944, + "narHash": "sha256-ye4bu3XgmufPZWwd2RCBkdkyV9dCVAx4CLiL8QKgixg=", "owner": "holochain", "repo": "holochain", - "rev": "a87b7b6280bd913d7ac88841810d2013864c0959", + "rev": "28dce06eef726cc7320637ab76ffe6f2798b12b8", "type": "github" }, "original": { "owner": "holochain", - "ref": "holochain-0.3.0-beta-dev.44", + "ref": "holochain-0.3.0-beta-dev.45", "repo": "holochain", "type": "github" } @@ -190,11 +190,11 @@ ] }, "locked": { - "lastModified": 1712786128, - "narHash": "sha256-uxpNpl9EvOTBgBWkz0ZbTNLH8AHT/Vb4Y33hQ9yJ3zU=", + "lastModified": 1713337081, + "narHash": "sha256-8KpJN5wXFY/6OF30EVbWBom9nulOS2BOH5HevAQ+feM=", "owner": "holochain", "repo": "holochain", - "rev": "5d94e128e4d23e7848466af0eaeb73ff8158e5aa", + "rev": "99a6345b2672cb6cfae92e4b85e763ecd0dcade7", "type": "github" }, "original": { @@ -254,11 +254,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1712608508, - "narHash": "sha256-vMZ5603yU0wxgyQeHJryOI+O61yrX2AHwY6LOFyV1gM=", + "lastModified": 1713248628, + "narHash": "sha256-NLznXB5AOnniUtZsyy/aPWOk8ussTuePp2acb9U+ISA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "4cba8b53da471aea2ab2b0c1f30a81e7c451f4b6", + "rev": "5672bc9dbf9d88246ddab5ac454e82318d094bb8", "type": "github" }, "original": { @@ -332,11 +332,11 @@ ] }, "locked": { - "lastModified": 1712715149, - "narHash": "sha256-uOx7GaLV+5hekAYtm/CBr627Pi7+d1Yh70hwKmVjYYo=", + "lastModified": 1713320003, + "narHash": "sha256-HY8uzaDMzn6umca2kE4ce5BEujaw+gvEiC5xTwAHSC4=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "9ef1eca23bee5fb8080863909af3802130b2ee57", + "rev": "7ce479797ae35ab40fbdf04fe5a8f8bfc92a2634", "type": "github" }, "original": { @@ -348,11 +348,11 @@ "scaffolding": { "flake": false, "locked": { - "lastModified": 1712589090, - "narHash": "sha256-neMBujjSEsOI0/MT1JpYnjtMq4tKHloCbYd8w6ARAKQ=", + "lastModified": 1712841191, + "narHash": "sha256-96bq4Yo50p8Nu1CmsnmEOjGDHM8+ak8x+7mZ7vFtZHo=", "owner": "holochain", "repo": "scaffolding", - "rev": "55b17239fb7aa80d6afce24479bb2b7ef18c5b6b", + "rev": "63a2c7966c21abff1c0397fbf4fde7329d0092cd", "type": "github" }, "original": { @@ -386,11 +386,11 @@ }, "locked": { "dir": "versions/weekly", - "lastModified": 1712786128, - "narHash": "sha256-uxpNpl9EvOTBgBWkz0ZbTNLH8AHT/Vb4Y33hQ9yJ3zU=", + "lastModified": 1713337081, + "narHash": "sha256-8KpJN5wXFY/6OF30EVbWBom9nulOS2BOH5HevAQ+feM=", "owner": "holochain", "repo": "holochain", - "rev": "5d94e128e4d23e7848466af0eaeb73ff8158e5aa", + "rev": "99a6345b2672cb6cfae92e4b85e763ecd0dcade7", "type": "github" }, "original": {