diff --git a/Cargo.toml b/Cargo.toml index 809e5b3d..e648bad3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,13 @@ members = [ "matrix-transpose", "clmul", ] +resolver = "2" + +[workspace.lints.rust] +# unsafe_code = "forbid" + +[workspace.lints.clippy] +# enum_glob_use = "deny" [workspace.dependencies] mpz-core = { path = "mpz-core" } diff --git a/clmul/Cargo.toml b/clmul/Cargo.toml index 3b70f20a..582f5fc0 100644 --- a/clmul/Cargo.toml +++ b/clmul/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" rust-version = "1.56" edition = "2021" +[lints] +workspace = true + [dependencies] cfg-if.workspace = true bytemuck = { workspace = true, features = ["derive"] } diff --git a/garble/mpz-garble-core/Cargo.toml b/garble/mpz-garble-core/Cargo.toml index d1e4fb9d..bda49e72 100644 --- a/garble/mpz-garble-core/Cargo.toml +++ b/garble/mpz-garble-core/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-garble-core" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_garble_core" diff --git a/garble/mpz-garble/Cargo.toml b/garble/mpz-garble/Cargo.toml index 04159631..cb6ca487 100644 --- a/garble/mpz-garble/Cargo.toml +++ b/garble/mpz-garble/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-garble" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_garble" diff --git a/matrix-transpose/Cargo.toml b/matrix-transpose/Cargo.toml index c8768f80..df3cd343 100644 --- a/matrix-transpose/Cargo.toml +++ b/matrix-transpose/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true + [dependencies] thiserror.workspace = true diff --git a/mpz-circuits-macros/Cargo.toml b/mpz-circuits-macros/Cargo.toml index d5dff9b2..6f25ffa1 100644 --- a/mpz-circuits-macros/Cargo.toml +++ b/mpz-circuits-macros/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-circuits-macros" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_circuits_macros" proc-macro = true diff --git a/mpz-circuits/Cargo.toml b/mpz-circuits/Cargo.toml index 0ff882a8..d71fd2dc 100644 --- a/mpz-circuits/Cargo.toml +++ b/mpz-circuits/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-circuits" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_circuits" diff --git a/mpz-core/Cargo.toml b/mpz-core/Cargo.toml index ed7af602..55adf7a0 100644 --- a/mpz-core/Cargo.toml +++ b/mpz-core/Cargo.toml @@ -6,6 +6,9 @@ edition = "2021" [lib] name = "mpz_core" +[lints] +workspace = true + [features] default = ["cointoss", "rayon"] cointoss = ["dep:rand_chacha"] diff --git a/mpz-fields/Cargo.toml b/mpz-fields/Cargo.toml index f68ef65a..9c8e3c97 100644 --- a/mpz-fields/Cargo.toml +++ b/mpz-fields/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-fields" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_fields" diff --git a/ot/mpz-ot-core/Cargo.toml b/ot/mpz-ot-core/Cargo.toml index 7fb85d15..b88dd648 100644 --- a/ot/mpz-ot-core/Cargo.toml +++ b/ot/mpz-ot-core/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-ot-core" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_ot_core" diff --git a/ot/mpz-ot/Cargo.toml b/ot/mpz-ot/Cargo.toml index 96d15c8e..c8a216b1 100644 --- a/ot/mpz-ot/Cargo.toml +++ b/ot/mpz-ot/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-ot" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_ot" diff --git a/share-conversion/mpz-share-conversion-core/Cargo.toml b/share-conversion/mpz-share-conversion-core/Cargo.toml index 91d2f1e8..2632894a 100644 --- a/share-conversion/mpz-share-conversion-core/Cargo.toml +++ b/share-conversion/mpz-share-conversion-core/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-share-conversion-core" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_share_conversion_core" diff --git a/share-conversion/mpz-share-conversion/Cargo.toml b/share-conversion/mpz-share-conversion/Cargo.toml index e9a7a51b..dfdb11ef 100644 --- a/share-conversion/mpz-share-conversion/Cargo.toml +++ b/share-conversion/mpz-share-conversion/Cargo.toml @@ -3,6 +3,9 @@ name = "mpz-share-conversion" version = "0.1.0" edition = "2021" +[lints] +workspace = true + [lib] name = "mpz_share_conversion"