Crates.io | bracoxide |
lib.rs | bracoxide |
version | 0.1.4 |
source | src |
created_at | 2023-06-21 06:25:18.618958 |
updated_at | 2024-11-10 06:58:19.789702 |
description | A feature-rich library for brace pattern combination, permutation generation, and error handling. |
homepage | |
repository | https://github.com/atahabaki/bracoxide |
max_upload_size | |
id | 895907 |
size | 72,336 |
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.
Add Bracoxide to your Cargo.toml:
[dependencies]
bracoxide = "0.1.2"
Import the bracoxide crate and start expanding brace patterns:
use bracoxide::explode;
fn main() {
let content = "foo{1..3}bar";
match explode(content) {
Ok(expanded) => {
// [`foo1bar`, `foo2bar`, `foo3bar`]
println!("Expanded patterns: {:?}", expanded);
}
Err(error) => {
eprintln!("Error occurred: {:?}", error);
}
}
}
For more details and advanced usage, please refer to the API documentation.
match contribution {
/// found a bug or encountered an issue
Contribution::Issue => redirect!("https://github.com/atahabaki/bracoxide/issues"),
/// propose any changes
Contribution::Change => redirect!("https://github.com/atahabaki/bracoxide/pulls"),
/// have a question or need help
Contribution::Ask => redirect!("https://github.com/atahabaki/bracoxide/discussions"),
}
Contributions are welcome! If you would like to contribute to this project, here are a few ways you can get involved:
Please review our contribution guidelines for more detailed information on how to contribute effectively.
This project is licensed under the MIT License - see the LICENSE file for details.