Cargo Features

[dependencies]
dprint-core = { version = "0.66.1", default-features = false, features = ["async_runtime", "formatting", "communication", "process", "wasm", "tracing"] }
default = formatting

The formatting feature is set by default whenever dprint-core is added without default-features = false somewhere in the dependency tree.

async_runtime communication? = async-trait, futures, parking_lot, tokio, tokio-util

Affects dprint-core::async_runtime, plugin_handler::CancellationToken.wait_cancellation

formatting default tracing? = bumpalo, hashbrown, rustc-hash, unicode-width

Affects dprint-core::formatting

communication process? = async_runtime, crossbeam-channel

Affects dprint-core::communication

process = communication, libc, serde_json, winapi

Affects plugins::process, plugin_handler::HostFormatRequest, plugin_handler::AsyncPluginHandler, dprint-core::plugins

wasm

Affects plugins::wasm, plugin_handler::SyncPluginInfo, plugin_handler::SyncPluginHandler, dprint-core::plugins

tracing = formatting

Affects graph_node::GraphNode.graph_node_id, print::TracingResult, print::trace_printing, print_items::Trace, print_items::TraceWriterNode, print_items::TracePrintNode, print_items::TracePrintItem, print_items::TraceInfo, print_items::TraceInfoInner, print_items::TraceLineNumberAnchor, print_items::TraceConditionReevaluation, print_items::TraceCondition, print_items::PrintNode.print_node_id, printer::PrintTracingResult, printer::PrinterOptions.enable_tracing, thread_state::next_print_node_id, thread_state::next_graph_node_id, writer::WriterOptions.enable_tracing

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

async-trait async_runtime?
bumpalo formatting
crossbeam-channel communication?
futures async_runtime?
hashbrown formatting
parking_lot async_runtime?
rustc-hash formatting
serde_json process?
tokio async_runtime?
tokio-util async_runtime?
unicode-width formatting
libc not unknown wasm32 process?
winapi win process?