Set up cargo workspace and shared crate

This commit is contained in:
Joscha 2025-01-21 20:42:55 +01:00
parent 05096bf088
commit 8fbdf63c51
5 changed files with 52 additions and 0 deletions

31
Cargo.toml Normal file
View file

@ -0,0 +1,31 @@
[workspace]
resolver = "2"
members = ["tta"]
[workspace.package]
version = "0.0.0"
edition = "2021"
[workspace.dependencies]
[workspace.lints]
rust.unsafe_code = { level = "forbid", priority = 1 }
# Lint groups
rust.deprecated_safe = "warn"
rust.future_incompatible = "warn"
rust.keyword_idents = "warn"
rust.rust_2018_idioms = "warn"
rust.unused = "warn"
# Individual lints
rust.let_underscore_drop = "warn"
rust.non_local_definitions = "warn"
rust.redundant_imports = "warn"
rust.redundant_lifetimes = "warn"
rust.single_use_lifetimes = "warn"
rust.unit_bindings = "warn"
rust.unused_crate_dependencies = "warn"
rust.unused_import_braces = "warn"
rust.unused_lifetimes = "warn"
rust.unused_qualifications = "warn"
# Clippy
clippy.use_self = "warn"