strs_tools_meta 0.16.0

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

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.