[package]
edition = "2024"
name = "dprint-core"
version = "0.68.2"
authors = ["David Sherret <dsherret@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for dprint."
homepage = "https://github.com/dprint/dprint/tree/main/crates/core"
readme = "README.md"
keywords = [
"formatting",
"formatter",
]
license = "MIT"
repository = "https://github.com/dprint/dprint"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
[features]
async_runtime = [
"async-trait",
"futures",
"parking_lot",
"tokio",
"tokio-util",
]
communication = [
"crossbeam-channel",
"async_runtime",
]
default = ["formatting"]
formatting = [
"bumpalo",
"hashbrown",
"rustc-hash",
"unicode-width",
]
process = [
"communication",
"serde_json",
"libc",
"winapi",
"thiserror",
]
tracing = ["formatting"]
wasm = [
"serde_json",
"thiserror",
]
[lib]
name = "dprint_core"
path = "src/lib.rs"
[[test]]
name = "reevaluation_protection_test"
path = "tests/reevaluation_protection_test.rs"
[[test]]
name = "sample_example_test"
path = "tests/sample_example_test.rs"
[[test]]
name = "tracing_test"
path = "tests/tracing_test.rs"
[dependencies.async-trait]
version = "0.1.72"
optional = true
[dependencies.bumpalo]
version = "3.17.0"
features = [
"allocator-api2",
"collections",
]
optional = true
[dependencies.crossbeam-channel]
version = "0.5.14"
optional = true
[dependencies.futures]
version = "0.3.26"
optional = true
[dependencies.hashbrown]
version = "0.15.2"
optional = true
[dependencies.indexmap]
version = "2.9.0"
features = ["serde"]
[dependencies.parking_lot]
version = "0.12.1"
optional = true
[dependencies.rustc-hash]
version = "2.1.0"
optional = true
[dependencies.serde]
version = "1.0.219"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.140"
features = ["preserve_order"]
optional = true
[dependencies.thiserror]
version = "=2.0.18"
optional = true
[dependencies.tokio]
version = "1.37.0"
features = [
"rt",
"time",
"macros",
"rt-multi-thread",
]
optional = true
[dependencies.tokio-util]
version = "0.7.7"
optional = true
[dependencies.unicode-width]
version = "0.2.0"
optional = true
[target.'cfg(not(any(target_os = "unknown", target_arch = "wasm32")))'.dependencies.libc]
version = "0.2.140"
optional = true
[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = [
"handleapi",
"synchapi",
"winbase",
"winerror",
]
optional = true