diff --git a/Cargo.toml b/Cargo.toml index 9f31c21167..da2c3e2d00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,13 @@ members = [ "network/protocol", ] +### LINTS ### + +# Note, crates not in this workspace don't include these lints. We have added a +# [workspace.lints] entry to those crates, so they can be found by searching +# for this. +[workspace.lints] + ### PROFILES ### # default profile for devs, fast to compile, okay enough to run, no debug information diff --git a/client/Cargo.toml b/client/Cargo.toml index 826448e581..0bd8d43995 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -4,6 +4,9 @@ version = "0.17.0" authors = ["Joshua Barretto "] edition = "2021" +[lints] +workspace = true + [features] simd = ["vek/platform_intrinsics"] plugins = ["common-state/plugins"] diff --git a/client/i18n/Cargo.toml b/client/i18n/Cargo.toml index d3223a29bb..ef19b5819f 100644 --- a/client/i18n/Cargo.toml +++ b/client/i18n/Cargo.toml @@ -5,6 +5,9 @@ name = "veloren-client-i18n" description = "Optional crate for internalization and diagnostic of existing localizations for frontends to consume" version = "0.13.0" +[lints] +workspace = true + [dependencies] # Assets common-assets = {package = "veloren-common-assets", path = "../../common/assets"} diff --git a/common/Cargo.toml b/common/Cargo.toml index bf0bac17b9..7a38ab0208 100644 --- a/common/Cargo.toml +++ b/common/Cargo.toml @@ -8,6 +8,9 @@ authors = [ ] edition = "2021" +[lints] +workspace = true + [features] no-assets = [] hot-reloading = ["common-assets/hot-reloading"] diff --git a/common/assets/Cargo.toml b/common/assets/Cargo.toml index 8bb61f58c4..f0e2185ce4 100644 --- a/common/assets/Cargo.toml +++ b/common/assets/Cargo.toml @@ -5,6 +5,9 @@ name = "veloren-common-assets" description = "Crate for game loading assets for veloren." version = "0.10.0" +[lints] +workspace = true + [dependencies] lazy_static = { workspace = true } assets_manager = { version = "0.12", features = ["bincode", "ron", "json"] } diff --git a/common/base/Cargo.toml b/common/base/Cargo.toml index 10ab0b921c..f441349dc8 100644 --- a/common/base/Cargo.toml +++ b/common/base/Cargo.toml @@ -5,6 +5,9 @@ name = "veloren-common-base" description = "minimal dependency for crates to now depend on whole common" version = "0.10.0" +[lints] +workspace = true + [features] tracy = ["profiling", "profiling/profile-with-tracy"] diff --git a/common/dynlib/Cargo.toml b/common/dynlib/Cargo.toml index 9ee739988c..e9d93c628e 100644 --- a/common/dynlib/Cargo.toml +++ b/common/dynlib/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" authors = ["Ben Wallis "] edition = "2021" +[lints] +workspace = true + [dependencies] find_folder = {version = "0.3.0"} libloading = {version = "0.8"} diff --git a/common/ecs/Cargo.toml b/common/ecs/Cargo.toml index 2505bed0b1..3accb8bcae 100644 --- a/common/ecs/Cargo.toml +++ b/common/ecs/Cargo.toml @@ -4,6 +4,9 @@ edition = "2021" name = "veloren-common-ecs" version = "0.10.0" +[lints] +workspace = true + [features] [dependencies] diff --git a/common/frontend/Cargo.toml b/common/frontend/Cargo.toml index 40251af047..7326111bc7 100644 --- a/common/frontend/Cargo.toml +++ b/common/frontend/Cargo.toml @@ -5,6 +5,9 @@ name = "veloren-common-frontend" description = "common stuff that is used by server-cli and voxygen directly" version = "0.10.0" +[lints] +workspace = true + [features] tracy = ["common-base/tracy", "tracing-tracy"] diff --git a/common/i18n/Cargo.toml b/common/i18n/Cargo.toml index 0197bf77ed..ad67250d83 100644 --- a/common/i18n/Cargo.toml +++ b/common/i18n/Cargo.toml @@ -4,6 +4,9 @@ version = "0.1.0" edition = "2021" description = "Crate for structs and methods that acknowledge the need for localization of the game" +[lints] +workspace = true + [dependencies] serde = { workspace = true, features = ["rc"] } hashbrown = { workspace = true } diff --git a/common/net/Cargo.toml b/common/net/Cargo.toml index 051655d582..6ba9125e98 100644 --- a/common/net/Cargo.toml +++ b/common/net/Cargo.toml @@ -4,6 +4,9 @@ edition = "2021" name = "veloren-common-net" version = "0.10.0" +[lints] +workspace = true + [features] simd = ["vek/platform_intrinsics"] diff --git a/common/query_server/Cargo.toml b/common/query_server/Cargo.toml index 9292182b1d..dc2bed002c 100644 --- a/common/query_server/Cargo.toml +++ b/common/query_server/Cargo.toml @@ -6,7 +6,8 @@ version = "0.1.2" authors = ["crabman ", "XVar "] edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true [features] server = ["dep:rand"] diff --git a/common/state/Cargo.toml b/common/state/Cargo.toml index c57db47d22..e4382d4627 100644 --- a/common/state/Cargo.toml +++ b/common/state/Cargo.toml @@ -4,6 +4,9 @@ edition = "2021" name = "veloren-common-state" version = "0.10.0" +[lints] +workspace = true + [features] simd = ["vek/platform_intrinsics"] plugins = ["common-assets/plugins", "toml", "wasmtime", "wasmtime-wasi", "tar", "bincode", "serde", "dep:sha2", "dep:hex"] diff --git a/common/systems/Cargo.toml b/common/systems/Cargo.toml index 9f3fcee772..cd67091683 100644 --- a/common/systems/Cargo.toml +++ b/common/systems/Cargo.toml @@ -4,6 +4,9 @@ edition = "2021" name = "veloren-common-systems" version = "0.10.0" +[lints] +workspace = true + [features] simd = ["vek/platform_intrinsics"] plugins = ["common-state/plugins"] diff --git a/network/Cargo.toml b/network/Cargo.toml index 6659cd8686..7cabb0281a 100644 --- a/network/Cargo.toml +++ b/network/Cargo.toml @@ -4,7 +4,8 @@ version = "0.3.0" authors = ["Marcel Märtens "] edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true [features] metrics = ["prometheus", "network-protocol/metrics"] diff --git a/network/protocol/Cargo.toml b/network/protocol/Cargo.toml index 30ca70d8a7..7e09d37b69 100644 --- a/network/protocol/Cargo.toml +++ b/network/protocol/Cargo.toml @@ -5,7 +5,8 @@ version = "0.6.1" authors = ["Marcel Märtens "] edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[lints] +workspace = true [features] metrics = ["prometheus"] diff --git a/plugin/examples/anim/Cargo.toml b/plugin/examples/anim/Cargo.toml index a9d2ac5992..82512bddb7 100644 --- a/plugin/examples/anim/Cargo.toml +++ b/plugin/examples/anim/Cargo.toml @@ -5,6 +5,8 @@ edition = "2021" [workspace] +[workspace.lints] + [package.metadata.component] package = "component:anim" diff --git a/plugin/examples/hello/Cargo.toml b/plugin/examples/hello/Cargo.toml index c6b6bd3be0..5f78ff690c 100644 --- a/plugin/examples/hello/Cargo.toml +++ b/plugin/examples/hello/Cargo.toml @@ -5,6 +5,8 @@ edition = "2021" [workspace] +[workspace.lints] + [package.metadata.component] package = "component:hello" diff --git a/rtsim/Cargo.toml b/rtsim/Cargo.toml index 312ea84994..6583f2da1f 100644 --- a/rtsim/Cargo.toml +++ b/rtsim/Cargo.toml @@ -3,6 +3,9 @@ name = "veloren-rtsim" version = "0.10.0" edition = "2021" +[lints] +workspace = true + [dependencies] common = { package = "veloren-common", path = "../common" } world = { package = "veloren-world", path = "../world" } diff --git a/server-cli/Cargo.toml b/server-cli/Cargo.toml index 7f33c4001b..67e3ea1e56 100644 --- a/server-cli/Cargo.toml +++ b/server-cli/Cargo.toml @@ -4,6 +4,9 @@ version = "0.17.0" authors = ["Joshua Barretto "] edition = "2021" +[lints] +workspace = true + [package.metadata.nix] build = true app = true diff --git a/server/Cargo.toml b/server/Cargo.toml index d925ef67cc..59362dad58 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -4,6 +4,9 @@ version = "0.17.0" authors = ["Joshua Barretto "] edition = "2021" +[lints] +workspace = true + [features] worldgen = ["server-agent/worldgen"] simd = ["vek/platform_intrinsics"] diff --git a/server/agent/Cargo.toml b/server/agent/Cargo.toml index 5093f22f91..a4bfe982ab 100644 --- a/server/agent/Cargo.toml +++ b/server/agent/Cargo.toml @@ -4,6 +4,9 @@ name = "veloren-server-agent" edition = "2021" version = "0.1.0" +[lints] +workspace = true + [features] worldgen = [] use-dyn-lib = ["common-dynlib"] diff --git a/voxygen/Cargo.toml b/voxygen/Cargo.toml index 9038912089..1be82bb8b7 100644 --- a/voxygen/Cargo.toml +++ b/voxygen/Cargo.toml @@ -11,6 +11,9 @@ version = "0.17.0" # Uncomment below and comment out default-run if you want to avoid this # autobins = false +[lints] +workspace = true + [package.metadata.nix] build = true app = true diff --git a/voxygen/anim/Cargo.toml b/voxygen/anim/Cargo.toml index 11424fa227..b965262aad 100644 --- a/voxygen/anim/Cargo.toml +++ b/voxygen/anim/Cargo.toml @@ -4,6 +4,9 @@ edition = "2021" name = "veloren-voxygen-anim" version = "0.10.0" +[lints] +workspace = true + [features] use-dyn-lib = ["lazy_static", "common-dynlib"] be-dyn-lib = [] diff --git a/voxygen/egui/Cargo.toml b/voxygen/egui/Cargo.toml index f3a39e2a21..df77c19d95 100644 --- a/voxygen/egui/Cargo.toml +++ b/voxygen/egui/Cargo.toml @@ -4,6 +4,9 @@ name = "veloren-voxygen-egui" edition = "2021" version = "0.9.0" +[lints] +workspace = true + [features] use-dyn-lib = ["common-dynlib"] be-dyn-lib = [] diff --git a/voxygen/i18n-helpers/Cargo.toml b/voxygen/i18n-helpers/Cargo.toml index 8773bfc101..666b018e51 100644 --- a/voxygen/i18n-helpers/Cargo.toml +++ b/voxygen/i18n-helpers/Cargo.toml @@ -5,6 +5,9 @@ name = "veloren-voxygen-i18n-helpers" description = "Crate for internalization and diagnostic of existing localizations." version = "0.10.0" +[lints] +workspace = true + [dependencies] common-net = {package = "veloren-common-net", path = "../../common/net"} common = {package = "veloren-common", path = "../../common"} diff --git a/world/Cargo.toml b/world/Cargo.toml index c1579e4d15..978c700413 100644 --- a/world/Cargo.toml +++ b/world/Cargo.toml @@ -4,6 +4,9 @@ version = "0.10.0" authors = ["Joshua Barretto "] edition = "2021" +[lints] +workspace = true + [features] use-dyn-lib = ["common-dynlib"] be-dyn-lib = []