2021-08-18 00:49:01 +02:00
|
|
|
[workspace]
|
2023-03-10 12:02:11 +01:00
|
|
|
members = ["axum", "axum-*", "examples/*"]
|
|
|
|
# Only check / build main crates by default (check all with `--workspace`)
|
|
|
|
default-members = ["axum", "axum-*"]
|
|
|
|
# Example has been deleted, but README.md remains
|
|
|
|
exclude = ["examples/async-graphql"]
|
2022-07-28 19:14:31 +02:00
|
|
|
resolver = "2"
|
2024-09-28 23:21:41 +02:00
|
|
|
|
|
|
|
[workspace.package]
|
|
|
|
rust-version = "1.75"
|
2024-11-30 16:53:48 +01:00
|
|
|
|
|
|
|
[workspace.lints.rust]
|
|
|
|
unsafe_code = "forbid"
|
|
|
|
|
|
|
|
rust_2018_idioms = { level = "warn", priority = -1 }
|
|
|
|
missing_debug_implementations = "warn"
|
|
|
|
missing_docs = "warn"
|
|
|
|
unreachable_pub = "warn"
|
|
|
|
|
|
|
|
[workspace.lints.clippy]
|
|
|
|
type_complexity = "allow"
|
|
|
|
|
|
|
|
await_holding_lock = "warn"
|
|
|
|
dbg_macro = "warn"
|
|
|
|
empty_enum = "warn"
|
|
|
|
enum_glob_use = "warn"
|
|
|
|
exit = "warn"
|
|
|
|
filter_map_next = "warn"
|
|
|
|
fn_params_excessive_bools = "warn"
|
|
|
|
if_let_mutex = "warn"
|
|
|
|
imprecise_flops = "warn"
|
|
|
|
inefficient_to_string = "warn"
|
|
|
|
linkedlist = "warn"
|
|
|
|
lossy_float_literal = "warn"
|
|
|
|
macro_use_imports = "warn"
|
|
|
|
match_on_vec_items = "warn"
|
|
|
|
match_wildcard_for_single_variants = "warn"
|
|
|
|
mem_forget = "warn"
|
|
|
|
needless_borrow = "warn"
|
|
|
|
needless_continue = "warn"
|
|
|
|
option_option = "warn"
|
|
|
|
rest_pat_in_fully_bound_structs = "warn"
|
|
|
|
str_to_string = "warn"
|
|
|
|
suboptimal_flops = "warn"
|
|
|
|
todo = "warn"
|
2024-12-03 22:27:14 +01:00
|
|
|
uninlined_format_args = "warn"
|
2024-11-30 16:53:48 +01:00
|
|
|
unnested_or_patterns = "warn"
|
|
|
|
unused_self = "warn"
|
|
|
|
verbose_file_reads = "warn"
|