#string #proc-macro-hack #concat #github #forked #building #component

macro concat-strs-derive

Forked from Rebecca Turner <rbt@sent.as> 's "https://github.com/9999years/concat_strs". No more proc-macro-hack = "0.5", and updated to-date (20240916)

8 releases

new 0.1.20241016 Oct 16, 2024
0.1.20241010 Oct 10, 2024
0.1.20240924 Sep 24, 2024

#1735 in Procedural macros

Download history 313/week @ 2024-09-13 194/week @ 2024-09-20 139/week @ 2024-09-27 454/week @ 2024-10-04 283/week @ 2024-10-11

1,091 downloads per month
Used in async-rawlogger

AGPL-3.0

15KB
125 lines

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

~260–710KB
~17K SLoC