blob: 6ac140f2e092164080e5b00d9351e5b9f716a9d4 [file] [log] [blame] [edit]
[package]
name = "rustfmt-nightly"
version = "1.9.0"
description = "Tool to find and fix Rust formatting issues"
repository = "https://github.com/rust-lang/rustfmt"
readme = "README.md"
license = "Apache-2.0 OR MIT"
build = "build.rs"
categories = ["development-tools"]
edition = "2021"
[[bin]]
name = "rustfmt"
path = "src/bin/main.rs"
[[bin]]
name = "cargo-fmt"
path = "src/cargo-fmt/main.rs"
[[bin]]
name = "rustfmt-format-diff"
path = "src/format-diff/main.rs"
[[bin]]
name = "git-rustfmt"
path = "src/git-rustfmt/main.rs"
[features]
default = ["cargo-fmt", "rustfmt-format-diff"]
cargo-fmt = []
rustfmt-format-diff = []
# FIXME(ytmimi) re-enable "bytecount/generic-simd" to the `generic-simd` features
# once bytecount releases a fix. rustfmt's `generic-simd` features is breaking CI
# and interfering with the next subtree-sync
generic-simd = []
[dependencies]
annotate-snippets = { version = "0.11" }
anyhow = "1.0"
bytecount = "0.6.9"
cargo_metadata = "0.18"
clap = { version = "4.4.2", features = ["derive"] }
clap-cargo = "0.12.0"
diff = "0.1"
dirs = "6.0"
getopts = "0.2"
ignore = "0.4"
itertools = "0.12"
regex = "1.7"
serde = { version = "1.0.160", features = ["derive"] }
serde_json = "1.0"
term = "1.1"
thiserror = "1.0.40"
toml = "0.9.5"
tracing = { version = "0.1.37", default-features = false, features = ["std"] }
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
unicode-segmentation = "1.9"
unicode-width = "0.1"
unicode-properties = { version = "0.1", default-features = false, features = ["general-category"] }
rustfmt-config_proc_macro = { version = "0.3", path = "config_proc_macro" }
semver = "1.0.21"
[dev-dependencies]
tempfile = "3.23.0"
# Rustc dependencies are loaded from the sysroot, Cargo doesn't know about them.
[package.metadata.rust-analyzer]
# This package uses #[feature(rustc_private)]
rustc_private = true