NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #2999 most downloaded on crates.io
Indented document literals
Latest stable
0.3.7
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 4 weeks to 2.5 years
Some releases are documented
notes for 10 of 17 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
17 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Improve parse error message when indoc macro is given unexpected input
Nothing published for this version
Another -Z minimal-versions fix
Your coding agent can read these notes before it upgrades. Set up the MCP server →
-Z minimal-versions fix (#29)-Z minimal-versions fix (#28, thanks @konstin)
-Z minimal-versions fix (#28, thanks @konstin)Support building with -Z minimal-versions
-Z minimal-versionsSupport 2018-style macro imports
Support 2018-style macro imports (#24)
- #[macro_use]
extern crate indoc;
+ use indoc::indoc;
#[macro_use] and does not support 2018-style use indoc::indoc imports.Nothing published for this version
Nothing published for this version
Nothing published for this version
Include LICENSE files in published sub-crates as required by Apache 2.0 license
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
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 RustOne column per quarter.