Cargo Features
[dependencies]
dprint-core = { version = "0.67.2", default-features = false, features = ["async_runtime", "formatting", "communication", "process", "wasm", "tracing"] }
- default = formatting
-
The
formatting
feature is set by default wheneverdprint-core
is added without
somewhere in the dependency tree.default-features = false - 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::FormatRequest
,plugin_handler::AsyncPluginHandler
,dprint-core::plugins
… - wasm = serde_json
-
Affects
plugins::wasm
,plugin_handler::SyncHostFormatRequest
,plugin_handler::SyncFormatRequest
,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. These features may have been created by mistake, and this functionality may be removed in the future.
- async-trait async_runtime?
- bumpalo formatting
- crossbeam-channel communication?
- futures async_runtime?
- hashbrown formatting
-
Enables hashbrown ^0.14.3
- parking_lot async_runtime?
- rustc-hash formatting
-
Enables rustc-hash ^1.1.0
- serde_json process? wasm?
- tokio async_runtime?
- tokio-util async_runtime?
- unicode-width formatting
-
Enables unicode-width ^0.1.10
- libc not unknown wasm32 process?
- winapi win process?