#proc-macro #compile-time #optimization

macro strs_tools_meta

Procedural macros for strs_tools compile-time optimizations. Its meta module. Don't use directly.

13 breaking releases

0.16.0 Jan 21, 2026
0.15.0 Dec 19, 2025
0.14.0 Nov 24, 2025

#441 in #optimization

Download history 69/week @ 2025-10-26 9/week @ 2025-11-02 11/week @ 2025-11-09 2/week @ 2025-11-16 28/week @ 2025-11-23 79/week @ 2025-11-30 69/week @ 2025-12-07 31/week @ 2025-12-14 18/week @ 2025-12-21 86/week @ 2025-12-28 199/week @ 2026-01-04 19/week @ 2026-01-11 136/week @ 2026-01-18 25/week @ 2026-01-25 415/week @ 2026-02-01 70/week @ 2026-02-08

652 downloads per month
Used in strs_tools

MIT license

76KB
1.5K SLoC

strs_tools_meta

Procedural macros for compile-time string optimizations.

Overview

strs_tools_meta provides procedural macros that enable compile-time optimizations for string operations. This is the proc-macro companion crate for strs_tools.

Important: This crate should not be used directly. Use the strs_tools crate which re-exports this functionality.

Installation

Add to your Cargo.toml:

[dependencies]
strs_tools = { version = "*" }

Features

Feature Default Description
enabled Enable the crate
full - All features
optimize_split Enable split optimization
optimize_match Enable match optimization

Usage

Optimized String Splitting

use strs_tools::optimize_split;

// Pattern compiled at build time
let parts = optimize_split!( "hello,world", "," );

Optimized String Matching

use strs_tools::optimize_match;

// Match patterns compiled at build time
let result = optimize_match!( input, "pattern1" | "pattern2" );

Documentation

Testing

# Run all tests
cargo nextest run --all-features

# With workspace context
w3 .test l::3

License

Licensed under MIT license. See license file for details.

Dependencies

~0–305KB