{"id":16713887,"url":"https://github.com/shepmaster/jetscii","last_synced_at":"2025-04-12T18:49:14.926Z","repository":{"id":31684687,"uuid":"35250263","full_name":"shepmaster/jetscii","owner":"shepmaster","description":"A tiny library to efficiently search strings for sets of ASCII characters and byte slices for sets of bytes.","archived":false,"fork":false,"pushed_at":"2024-08-14T17:35:33.000Z","size":160,"stargazers_count":114,"open_issues_count":8,"forks_count":21,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-03T20:13:16.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shepmaster.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-08T00:28:50.000Z","updated_at":"2025-03-09T13:45:31.000Z","dependencies_parsed_at":"2022-09-14T09:22:08.938Z","dependency_job_id":"dc4c0d63-7449-4b05-a251-4f7ebcd3c732","html_url":"https://github.com/shepmaster/jetscii","commit_stats":{"total_commits":117,"total_committers":15,"mean_commits":7.8,"dds":"0.17948717948717952","last_synced_commit":"c02c240ade4da05274e7718261e24fe52d5974df"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepmaster%2Fjetscii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepmaster%2Fjetscii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepmaster%2Fjetscii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shepmaster%2Fjetscii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shepmaster","download_url":"https://codeload.github.com/shepmaster/jetscii/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618218,"owners_count":21134199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-12T20:48:25.827Z","updated_at":"2025-04-12T18:49:14.900Z","avatar_url":"https://github.com/shepmaster.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jetscii\n\nA tiny library to efficiently search strings for sets of ASCII\ncharacters or byte slices for sets of bytes.\n\n[![Current Version](https://img.shields.io/crates/v/jetscii.svg)](https://crates.io/crates/jetscii) [![Documentation](https://docs.rs/jetscii/badge.svg)][docs]\n\n## Examples\n\n### Searching for a set of ASCII characters\n\n```rust\n#[macro_use]\nextern crate jetscii;\n\nfn main() {\n    let part_number = \"86-J52:rev1\";\n    let first = ascii_chars!('-', ':').find(part_number);\n    assert_eq!(first, Some(2));\n}\n```\n\n### Searching for a set of bytes\n\n```rust\n#[macro_use]\nextern crate jetscii;\n\nfn main() {\n    let raw_data = [0x00, 0x01, 0x10, 0xFF, 0x42];\n    let first = bytes!(0x01, 0x10).find(\u0026raw_data);\n    assert_eq!(first, Some(1));\n}\n```\n\nCheck out [the documentation][docs] for information about feature flags and benchmarks.\n\n[docs]: https://docs.rs/jetscii/\n\n## Contributing\n\n1. Fork it (https://github.com/shepmaster/jetscii/fork)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Add a failing test.\n4. Add code to pass the test.\n5. Commit your changes (`git commit -am 'Add some feature'`)\n6. Ensure tests pass.\n7. Push to the branch (`git push origin my-new-feature`)\n8. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepmaster%2Fjetscii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshepmaster%2Fjetscii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshepmaster%2Fjetscii/lists"}