13 releases

0.4.3 Sep 8, 2024
0.4.2 Sep 8, 2024
0.4.0 Aug 22, 2023
0.3.0 Sep 15, 2020
0.1.2 Jun 12, 2020

#26 in Value formatting

Download history 2011/week @ 2024-09-21 1787/week @ 2024-09-28 2023/week @ 2024-10-05 2243/week @ 2024-10-12 2498/week @ 2024-10-19 2189/week @ 2024-10-26 1977/week @ 2024-11-02 2450/week @ 2024-11-09 3343/week @ 2024-11-16 2324/week @ 2024-11-23 2531/week @ 2024-11-30 3582/week @ 2024-12-07 3168/week @ 2024-12-14 1239/week @ 2024-12-21 1546/week @ 2024-12-28 1737/week @ 2025-01-04

8,328 downloads per month
Used in 13 crates (10 directly)

MIT/Apache

16KB
238 lines

maintenance: passively maintained

dyn-fmt

Provides dynamic string format.

use dyn_fmt::AsStrFormatExt;

fn main() {
    assert_eq!("{}a{}b{}c".format(&[1, 2, 3]), "1a2b3c");
    assert_eq!("{}a{}b{}c".format(&[1, 2, 3, 4]), "1a2b3c");
    assert_eq!("{}a{}b{}c".format(&[1, 2]), "1a2bc");
    assert_eq!("{{}}{}".format(&[1, 2]), "{}1");
}

Comparision

dyn-fmt strfmt dynfmt
no_std + - -
Easy but powerfull API that you enjoy using + +/- -
Nice license + +/- +/-

Dependencies

~175KB