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

#36 in Value formatting

Download history 3168/week @ 2024-12-14 1239/week @ 2024-12-21 1546/week @ 2024-12-28 2172/week @ 2025-01-04 3310/week @ 2025-01-11 2775/week @ 2025-01-18 2235/week @ 2025-01-25 2756/week @ 2025-02-01 3035/week @ 2025-02-08 3327/week @ 2025-02-15 4394/week @ 2025-02-22 4132/week @ 2025-03-01 4200/week @ 2025-03-08 6286/week @ 2025-03-15 6001/week @ 2025-03-22 6878/week @ 2025-03-29

23,879 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