[package]
edition = "2024"
name = "rustidy"
version = "0.1.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rustidy formatter"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/zenithsiz/rustidy"
resolver = "2"
[lib]
name = "rustidy"
path = "src/lib.rs"
[[bin]]
name = "cargo-rustidy"
path = "bin/cargo-rustidy/main.rs"
[[bin]]
name = "rustidy"
path = "bin/rustidy/main.rs"
[[test]]
name = "format"
path = "tests/format.rs"
[[test]]
name = "format_output"
path = "tests/format_output.rs"
[[test]]
name = "parse"
path = "tests/parse.rs"
[[test]]
name = "parse_error"
path = "tests/parse_error.rs"
[[test]]
name = "whitespace"
path = "tests/whitespace.rs"
[[bench]]
name = "format"
path = "benches/format.rs"
[[bench]]
name = "parse"
path = "benches/parse.rs"
[[bench]]
name = "print"
path = "benches/print.rs"
[dependencies.app-error]
version = "0.1.0"
[dependencies.cargo_metadata]
version = "0.23.1"
[dependencies.clap]
version = "4.5.60"
features = ["derive"]
[dependencies.clap-cargo]
version = "0.18.3"
[dependencies.rustidy-ast]
version = "0.1.0"
[dependencies.rustidy-ast-util]
version = "0.1.0"
[dependencies.rustidy-format]
version = "0.1.0"
[dependencies.rustidy-parse]
version = "0.1.0"
[dependencies.rustidy-print]
version = "0.1.0"
[dependencies.rustidy-util]
version = "0.1.0"
[dependencies.toml]
version = "0.9.8"
[dependencies.tracing]
version = "0.1.44"
[dependencies.zutil-logger]
version = "0.1.0"
[dev-dependencies.assert-json-diff]
version = "2.0.2"
[dev-dependencies.difference]
version = "2.0.0"
[dev-dependencies.serde]
version = "1.0.228"
features = [
"derive",
"unstable",
]
[dev-dependencies.serde_json]
version = "1.0.149"
features = ["unbounded_depth"]
[lints.clippy]
empty_enums = "allow"
items-after-statements = "allow"
large_enum_variant = "allow"
match_bool = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
option_if_let_else = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_field_names = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
unnecessary_debug_formatting = "allow"
unnecessary_self_imports = "warn"
wildcard_imports = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unused_crate_dependencies = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(rust_analyzer)"]