#string #macro-for-building #macro #component #concat

concat_strs

Macro for quickly building a String from components

2 stable releases

1.0.2 Jun 4, 2020

#5 in #macro-for-building

Download history 32/week @ 2025-03-25 31/week @ 2025-04-01 22/week @ 2025-04-08 15/week @ 2025-04-15 39/week @ 2025-04-22 86/week @ 2025-04-29 35/week @ 2025-05-06 73/week @ 2025-05-13 25/week @ 2025-05-20 17/week @ 2025-05-27 9/week @ 2025-06-10 37/week @ 2025-06-17 18/week @ 2025-06-24 2/week @ 2025-07-01 12/week @ 2025-07-08

70 downloads per month

AGPL-3.0

4KB

concat_strs

docs.rs crates.io license: AGPL-3.0 github.com/9999years/concat_strs

Provides the concat_strs! macro, which allows quickly building a String from a number of components.

Example usage:

use concat_strs::concat_strs;

assert_eq!(
    "foo_bar_3.0",
    concat_strs!(
        "foo",
        '_',
        "bar",
        '_',
        3.0,
    )
);

This is the fastest way to build a string from components.

Dependencies

~1.5MB
~39K SLoC