NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #551 most downloaded on crates.io
Remove a column of leading whitespace from a string
Latest stable
0.2.4
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 12 of 17 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
17 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
- Update to proc-macro-hack 0.4
Fix a shared library error when using indoc from a binary and running outside of Cargo
Add an unstable feature that changes the implementation to be a Macros 2.0 macro. This is required in call sites that need a string literal rather tha
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add an unstable feature that changes the implementation to be a Macros 2.0 macro. This is required in call sites that need a string literal rather than just a &'static str, such as in a format string. (#12)
[dependencies]
indoc = { version = "0.2.1", features = ["unstable"] }
#![feature(proc_macro)]
extern crate indoc;
use indoc::indoc;
fn main() {
let username = "Boscop";
let body = "Check this out";
let message = format!(
indoc!("
Hello {username}
======{underline}
{body}
"),
username = username,
underline = "=".repeat(username.len()),
body = body,
);
print!("{}", message);
}
Rewrite to use `proc-macro-hack` and work on stable Rust
proc-macro-hack and work on stable RustNothing published for this version
Adds indoc::expand as an alternative to indoc::register when using the with-syntex feature. This hides the dependency on Syntex and allows Syntex user
indoc::expand as an alternative to indoc::register when using the with-syntex feature. This hides the dependency on Syntex and allows Syntex users to avoid being broken by Indoc bumping its Syntex dependency.Nothing published for this version
Nothing published for this version
Nothing published for this version
No difference in functionality; this release is just to publish a few new keywords to crates.io
Support for byte string literals
Allows document to start on same line as opening quote
- Fixes typo in an error message
Adds with-syntex feature to build with syntex to support stable Rust
with-syntex feature to build with syntex to support stable RustPlugin registrar renamed from plugin_registrar to just register
plugin_registrar to just registerInitial implementation of indoc!()
indoc!()One column per quarter.