#format #string #format-text #text #lua

lformat

Clone of Lua string.format in Rust based on C s(n)printf

5 releases

0.2.2 May 2, 2025
0.2.1 May 2, 2025
0.2.0 May 2, 2025
0.1.1 May 1, 2025
0.1.0 May 1, 2025

#986 in Text processing

Download history 430/week @ 2025-04-30 66/week @ 2025-05-07 41/week @ 2025-05-14

537 downloads per month

MIT license

27KB
667 lines

lformat

a clone of Lua string.format in Rust based on C sprintf

Example

use lformat::format;
let s = format("%d + %d = %d\n", &[&3, &9, &(3+9)]).unwrap();
assert_eq!(s, "3 + 9 = 12\n");

Dependencies

~230–660KB
~15K SLoC