Add workspace lints table

This commit is contained in:
Imbris
2025-02-26 20:39:44 -05:00
parent 9fac465a81
commit e2ed4e8be5
27 changed files with 80 additions and 3 deletions

View File

@ -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

View File

@ -4,6 +4,9 @@ version = "0.17.0"
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
edition = "2021"
[lints]
workspace = true
[features]
simd = ["vek/platform_intrinsics"]
plugins = ["common-state/plugins"]

View File

@ -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"}

View File

@ -8,6 +8,9 @@ authors = [
]
edition = "2021"
[lints]
workspace = true
[features]
no-assets = []
hot-reloading = ["common-assets/hot-reloading"]

View File

@ -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"] }

View File

@ -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"]

View File

@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Ben Wallis <atomyc@gmail.com>"]
edition = "2021"
[lints]
workspace = true
[dependencies]
find_folder = {version = "0.3.0"}
libloading = {version = "0.8"}

View File

@ -4,6 +4,9 @@ edition = "2021"
name = "veloren-common-ecs"
version = "0.10.0"
[lints]
workspace = true
[features]
[dependencies]

View File

@ -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"]

View File

@ -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 }

View File

@ -4,6 +4,9 @@ edition = "2021"
name = "veloren-common-net"
version = "0.10.0"
[lints]
workspace = true
[features]
simd = ["vek/platform_intrinsics"]

View File

@ -6,7 +6,8 @@ version = "0.1.2"
authors = ["crabman <vlrncrabman+veloren@gmail.com>", "XVar <atomyc@gmail.com>"]
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"]

View File

@ -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"]

View File

@ -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"]

View File

@ -4,7 +4,8 @@ version = "0.3.0"
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
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"]

View File

@ -5,7 +5,8 @@ version = "0.6.1"
authors = ["Marcel Märtens <marcel.cochem@googlemail.com>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lints]
workspace = true
[features]
metrics = ["prometheus"]

View File

@ -5,6 +5,8 @@ edition = "2021"
[workspace]
[workspace.lints]
[package.metadata.component]
package = "component:anim"

View File

@ -5,6 +5,8 @@ edition = "2021"
[workspace]
[workspace.lints]
[package.metadata.component]
package = "component:hello"

View File

@ -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" }

View File

@ -4,6 +4,9 @@ version = "0.17.0"
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
edition = "2021"
[lints]
workspace = true
[package.metadata.nix]
build = true
app = true

View File

@ -4,6 +4,9 @@ version = "0.17.0"
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
edition = "2021"
[lints]
workspace = true
[features]
worldgen = ["server-agent/worldgen"]
simd = ["vek/platform_intrinsics"]

View File

@ -4,6 +4,9 @@ name = "veloren-server-agent"
edition = "2021"
version = "0.1.0"
[lints]
workspace = true
[features]
worldgen = []
use-dyn-lib = ["common-dynlib"]

View File

@ -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

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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"}

View File

@ -4,6 +4,9 @@ version = "0.10.0"
authors = ["Joshua Barretto <joshua.s.barretto@gmail.com>"]
edition = "2021"
[lints]
workspace = true
[features]
use-dyn-lib = ["common-dynlib"]
be-dyn-lib = []