Registry / utility / indoc
library2.0.7rscratesunverified

Provides indented document literals for Rust, allowing multi-line strings with preserved indentation.

# Cargo.toml [dependencies] indoc = "2.0.7"
INSTALL
IMPORT
SIG · INDOC
I
indoc
utilityrustv2.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

indoc
use indoc::indoc;

Demonstrates the indoc! macro for indented string literals.

use indoc::indoc; fn main() { let s = indoc!(""" Hello, world! """); println!("{}", s); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
indoc — cargo add indoc · libregistry