#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)

14 releases

new 0.1.20250112 Jan 12, 2025
0.1.20241203 Dec 3, 2024
0.1.20241121 Nov 21, 2024
0.1.20241024 Oct 24, 2024
0.1.20240924 Sep 24, 2024

#2059 in Procedural macros

Download history 148/week @ 2024-09-28 473/week @ 2024-10-05 255/week @ 2024-10-12 313/week @ 2024-10-19 131/week @ 2024-10-26 104/week @ 2024-11-02 43/week @ 2024-11-09 163/week @ 2024-11-16 89/week @ 2024-11-23 157/week @ 2024-11-30 57/week @ 2024-12-07 42/week @ 2024-12-14 10/week @ 2024-12-21 1/week @ 2024-12-28 9/week @ 2025-01-04 165/week @ 2025-01-11

187 downloads per month
Used in 3 crates

AGPL-3.0

15KB
123 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

~245–700KB
~17K SLoC