s-macro 0.1.0

A basic Rust library for conveniently making a String.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 268.73 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • zemja/s-macro
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zemja

s-macro

A basic Rust library for conveniently making a String. Like so:

use s_macro::s;

assert!(s!()                   == String::new());
assert!(s!("hello, world")     == String::from("hello, world"));
assert!(s!(123 + 321)          == format!("{}", 123 + 321));

let world = "world";
assert!(s!("hello, {}", world) == format!("hello, {}", world));
assert!(s!("hello, {world}")   == format!("hello, {world}"));