diff --git a/Cargo.toml b/Cargo.toml index b2ad956f..8777fd10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,3 +24,14 @@ resolver = "2" #lto = true strip = true codegen-units = 1 + +[workspace.lints.rust] +# unsafe_code = "forbid" +# missing_docs = "warn" +# missing_debug_implementations = "warn" +single_use_lifetimes = "warn" +trivial_casts = "warn" +unused_lifetimes = "warn" +unused_qualifications = "warn" +# variant_size_differences = "warn" +unexpected_cfgs = "warn" diff --git a/engine/graphics/Cargo.toml b/engine/graphics/Cargo.toml index 619ec182..365b1b66 100644 --- a/engine/graphics/Cargo.toml +++ b/engine/graphics/Cargo.toml @@ -12,3 +12,6 @@ strafesnet_common = { path = "../../lib/common", registry = "strafesnet" } strafesnet_session = { path = "../session", registry = "strafesnet" } strafesnet_settings = { path = "../settings", registry = "strafesnet" } wgpu = "27.0.0" + +[lints] +workspace = true diff --git a/engine/physics/Cargo.toml b/engine/physics/Cargo.toml index 89d4a7dd..39e2a8bb 100644 --- a/engine/physics/Cargo.toml +++ b/engine/physics/Cargo.toml @@ -8,3 +8,6 @@ arrayvec = "0.7.6" glam = "0.30.0" id = { version = "0.1.0", registry = "strafesnet" } strafesnet_common = { path = "../../lib/common", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/engine/session/Cargo.toml b/engine/session/Cargo.toml index 49a97e4b..590dafbe 100644 --- a/engine/session/Cargo.toml +++ b/engine/session/Cargo.toml @@ -10,3 +10,6 @@ strafesnet_common = { path = "../../lib/common", registry = "strafesnet" } strafesnet_physics = { path = "../physics", registry = "strafesnet" } strafesnet_settings = { path = "../settings", registry = "strafesnet" } strafesnet_snf = { path = "../../lib/snf", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/engine/settings/Cargo.toml b/engine/settings/Cargo.toml index d737daba..7afa625f 100644 --- a/engine/settings/Cargo.toml +++ b/engine/settings/Cargo.toml @@ -8,3 +8,6 @@ configparser = "3.0.2" directories = "6.0.0" glam = "0.30.0" strafesnet_common = { path = "../../lib/common", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/integration-testing/Cargo.toml b/integration-testing/Cargo.toml index a1aacfd7..3bdfa642 100644 --- a/integration-testing/Cargo.toml +++ b/integration-testing/Cargo.toml @@ -10,3 +10,6 @@ strafesnet_physics = { path = "../engine/physics", registry = "strafesnet" } strafesnet_snf = { path = "../lib/snf", registry = "strafesnet" } # this is just for the primitive constructor strafesnet_rbx_loader = { path = "../lib/rbx_loader", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/lib/bsp_loader/Cargo.toml b/lib/bsp_loader/Cargo.toml index 66cf3c20..83f70710 100644 --- a/lib/bsp_loader/Cargo.toml +++ b/lib/bsp_loader/Cargo.toml @@ -17,3 +17,6 @@ vbsp = "0.9.1" vbsp-entities-css = "0.6.0" vmdl = "0.2.0" vpk = "0.3.0" + +[lints] +workspace = true diff --git a/lib/common/Cargo.toml b/lib/common/Cargo.toml index a65f225b..4eea7666 100644 --- a/lib/common/Cargo.toml +++ b/lib/common/Cargo.toml @@ -17,3 +17,6 @@ linear_ops = { version = "0.1.1", path = "../linear_ops", registry = "strafesnet ratio_ops = { version = "0.1.0", path = "../ratio_ops", registry = "strafesnet" } glam = "0.30.0" id = { version = "0.1.0", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/lib/deferred_loader/Cargo.toml b/lib/deferred_loader/Cargo.toml index 04240f86..f1f8f233 100644 --- a/lib/deferred_loader/Cargo.toml +++ b/lib/deferred_loader/Cargo.toml @@ -11,3 +11,6 @@ authors = ["Rhys Lloyd "] [dependencies] strafesnet_common = { version = "0.7.0", path = "../common", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/lib/fixed_wide/Cargo.toml b/lib/fixed_wide/Cargo.toml index 59ff87ca..794e46ad 100644 --- a/lib/fixed_wide/Cargo.toml +++ b/lib/fixed_wide/Cargo.toml @@ -18,3 +18,6 @@ bnum = "0.13.0" arrayvec = { version = "0.7.6", optional = true } paste = "1.0.15" ratio_ops = { version = "0.1.0", path = "../ratio_ops", registry = "strafesnet", optional = true } + +[lints] +workspace = true diff --git a/lib/linear_ops/Cargo.toml b/lib/linear_ops/Cargo.toml index 49293209..2dc709cb 100644 --- a/lib/linear_ops/Cargo.toml +++ b/lib/linear_ops/Cargo.toml @@ -20,3 +20,6 @@ paste = { version = "1.0.15", optional = true } [dev-dependencies] fixed_wide = { path = "../fixed_wide", registry = "strafesnet", features = ["wide-mul"] } + +[lints] +workspace = true diff --git a/lib/ratio_ops/Cargo.toml b/lib/ratio_ops/Cargo.toml index c4b817d8..eda4818c 100644 --- a/lib/ratio_ops/Cargo.toml +++ b/lib/ratio_ops/Cargo.toml @@ -8,3 +8,6 @@ description = "Ratio operations using trait bounds for avoiding division like th authors = ["Rhys Lloyd "] [dependencies] + +[lints] +workspace = true diff --git a/lib/rbx_loader/Cargo.toml b/lib/rbx_loader/Cargo.toml index 5332627a..7ecb6b84 100644 --- a/lib/rbx_loader/Cargo.toml +++ b/lib/rbx_loader/Cargo.toml @@ -23,3 +23,6 @@ rbxassetid = { version = "0.1.0", path = "../rbxassetid", registry = "strafesnet roblox_emulator = { version = "0.5.1", path = "../roblox_emulator", default-features = false, registry = "strafesnet" } strafesnet_common = { version = "0.7.0", path = "../common", registry = "strafesnet" } strafesnet_deferred_loader = { version = "0.5.1", path = "../deferred_loader", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/lib/rbxassetid/Cargo.toml b/lib/rbxassetid/Cargo.toml index 4f226ce9..2990d265 100644 --- a/lib/rbxassetid/Cargo.toml +++ b/lib/rbxassetid/Cargo.toml @@ -9,3 +9,6 @@ authors = ["Rhys Lloyd "] [dependencies] url = "2.5.4" + +[lints] +workspace = true diff --git a/lib/roblox_emulator/Cargo.toml b/lib/roblox_emulator/Cargo.toml index fbd265ba..f236d551 100644 --- a/lib/roblox_emulator/Cargo.toml +++ b/lib/roblox_emulator/Cargo.toml @@ -19,3 +19,6 @@ rbx_dom_weak = { version = "3.0.1-sn5", registry = "strafesnet" } rbx_reflection = "5.0.0" rbx_reflection_database = "1.0.0" rbx_types = "2.0.0" + +[lints] +workspace = true diff --git a/lib/snf/Cargo.toml b/lib/snf/Cargo.toml index a69c8cdf..9c0110d4 100644 --- a/lib/snf/Cargo.toml +++ b/lib/snf/Cargo.toml @@ -9,3 +9,6 @@ edition = "2024" binrw = "0.15.0" id = { version = "0.1.0", registry = "strafesnet" } strafesnet_common = { version = "0.7.0", path = "../common", registry = "strafesnet" } + +[lints] +workspace = true diff --git a/map-tool/Cargo.toml b/map-tool/Cargo.toml index dd3d96de..1e4629b4 100644 --- a/map-tool/Cargo.toml +++ b/map-tool/Cargo.toml @@ -35,3 +35,6 @@ vtf = "0.3.0" #lto = true #strip = true #codegen-units = 1 + +[lints] +workspace = true diff --git a/strafe-client/Cargo.toml b/strafe-client/Cargo.toml index 19a28340..a8b8ac1a 100644 --- a/strafe-client/Cargo.toml +++ b/strafe-client/Cargo.toml @@ -34,3 +34,6 @@ winit = "0.30.7" [profile.dev] strip = false opt-level = 3 + +[lints] +workspace = true