bracoxide 0.1.1

A feature-rich library for brace pattern combination, permutation generation, and error handling.
Documentation

{Bracoxide}

Tests License: MIT Contributor Covenant Documentation Bracoxide Crate

Bracoxide is a powerful Rust library for handling and expanding brace expansions. It provides a simple and intuitive way to generate combinations and permutations from brace patterns.

Features

  • Brace Expansion: Easily expand brace patterns into a list of all possible combinations.
  • Error Handling: Comprehensive error handling for invalid brace patterns or expansion failures.
  • MIT Licensed: Bracoxide is open-source and licensed under the MIT License.

Installation

Add Bracoxide to your Cargo.toml:

[dependencies]
bracoxide = "0.1.0"

Usage

Import the bracoxide crate and start expanding brace patterns:

use bracoxide::{bracoxidize, OxidizationError};

fn main() {
    let content = "foo{1..3}bar";
    match bracoxidize(content) {
        Ok(expanded) => {
            println!("Expanded patterns: {:?}", expanded);
        }
        Err(error) => {
            eprintln!("Error occurred: {:?}", error);
        }
    }
}

For more details and advanced usage, please refer to the API documentation.

Contributing

Contributions are welcome! If you encounter any issues or have ideas for improvements, please open an issue or submit a pull request. See our contribution guidelines for more information.

License

This project is licensed under the MIT License - see the LICENSE file for details.