og_fmt 1.0.4

The original `format!`
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 2 items with examples
  • Size
  • Source code size: 4.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • brson/og_fmt
    7 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • brson

og_fmt — Will the real format! please stand up?

O.G. Rust Series™ — Rust as it really was

💯% True Rust · Accept No Substitutes 💯%

og_fmt brings back the legendary fmt! macro! Removed from Rust in 2013, fmt! is a more primal interpretation of the Rust string formatting paradigm. Some say that the renaming of fmt! to format! was the single largest mistake in the history of Rust. We'll never know what might have been, but we can still recapture a bit of that original formatting feeling.

Behold! fmt!

Example

#[macro_use]
extern crate og_fmt;

fn main() {
    let msg = fmt!("Original fmt! is the #{} fmt!", 1);
    println!("{}", msg);
}

About O.G. Rust Series™

O.G. Rust Series™ — Rust as it really was, restores Rust to its original design, one crate at a time. O.G. Rust Series™ crates are derived from the original source code of historical revisions of the Rust compiler, and provide the most authentic Rust experience available today.

Enjoy other fine crates in O.G Rust Series™ and share your favorites #OGRust

License

MIT / Apache-2.0