| Crates.io | strs_tools_meta |
| lib.rs | strs_tools_meta |
| version | 0.16.0 |
| created_at | 2025-08-08 11:54:00.400873+00 |
| updated_at | 2026-01-21 18:33:01.430301+00 |
| description | Procedural macros for strs_tools compile-time optimizations. Its meta module. Don't use directly. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1786673 |
| size | 54,376 |
Procedural macros for compile-time string optimizations.
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.
Add to your Cargo.toml:
[dependencies]
strs_tools = { version = "*" }
| Feature | Default | Description |
|---|---|---|
enabled |
✓ | Enable the crate |
full |
- | All features |
optimize_split |
✓ | Enable split optimization |
optimize_match |
✓ | Enable match optimization |
use strs_tools::optimize_split;
// Pattern compiled at build time
let parts = optimize_split!( "hello,world", "," );
use strs_tools::optimize_match;
// Match patterns compiled at build time
let result = optimize_match!( input, "pattern1" | "pattern2" );
# Run all tests
cargo nextest run --all-features
# With workspace context
w3 .test l::3
Licensed under MIT license. See license file for details.