strs_tools_meta

Crates.iostrs_tools_meta
lib.rsstrs_tools_meta
version0.16.0
created_at2025-08-08 11:54:00.400873+00
updated_at2026-01-21 18:33:01.430301+00
descriptionProcedural macros for strs_tools compile-time optimizations. Its meta module. Don't use directly.
homepage
repository
max_upload_size
id1786673
size54,376
Wandalen (Wandalen)

documentation

README

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.

Commit count: 0

cargo fmt