Crates.io | dprint-core |
lib.rs | dprint-core |
version | |
source | src |
created_at | 2019-10-27 18:09:34.390022 |
updated_at | 2025-02-02 00:07:44.876731 |
description | Core library for dprint. |
homepage | https://github.com/dprint/dprint/tree/main/crates/core |
repository | https://github.com/dprint/dprint |
max_upload_size | |
id | 176176 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Rust crate for common dprint code.
Features:
formatting
- Code to help build a code formatter in Rust (not required for creating a plugin).process
- Code to help build a "process plugin"wasm
- Code to help build a "wasm plugin" (recommended over process plugins)Use:
let result = dprint_core::formatting::format(|| {
let print_items = ...; // parsed out IR (see example below)
print_items
}, PrintOptions {
indent_width: 4,
max_width: 10,
use_tabs: false,
newline_kind: "\n",
});
See overview.md.