| Crates.io | smacros |
| lib.rs | smacros |
| version | 0.1.0 |
| created_at | 2025-07-06 19:00:10.196877+00 |
| updated_at | 2025-07-06 19:00:10.196877+00 |
| description | Minimalistic macro for easy String creation |
| homepage | |
| repository | https://github.com/buugaaga/smacros |
| max_upload_size | |
| id | 1740370 |
| size | 3,934 |
Minimal macro for easy String creation and concatenation in Rust.
use smacros::s;
let s1 = s!("hello"); // From single value
let s2 = s!("a", "b", 42); // Concatenation
let empty = s!(); // Empty String
Converts any ToString value to String
Concatenates multiple values
Zero dependencies
Zero-cost abstraction
Add to Cargo.toml:
[dependencies]
s-macro = "0.1"
License: MIT OR Apache-2.0
This version:
For publishing:
cargo publish --dry-run firstcargo publish