{"id":51466182,"url":"https://github.com/aeckar/taped","last_synced_at":"2026-07-06T11:30:49.651Z","repository":{"id":361551069,"uuid":"1254880344","full_name":"aeckar/taped","owner":"aeckar","description":"A lightweight cursor for non-linear parsing of slices.","archived":false,"fork":false,"pushed_at":"2026-05-31T06:47:37.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-31T08:05:57.368Z","etag":null,"topics":["cursor","data-structures","iter","parsing","pointer"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/taped","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aeckar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-31T05:37:09.000Z","updated_at":"2026-05-31T06:47:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/aeckar/taped","commit_stats":null,"previous_names":["aeckar/taped"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/aeckar/taped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeckar%2Ftaped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeckar%2Ftaped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeckar%2Ftaped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeckar%2Ftaped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aeckar","download_url":"https://codeload.github.com/aeckar/taped/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aeckar%2Ftaped/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35189713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cursor","data-structures","iter","parsing","pointer"],"created_at":"2026-07-06T11:30:49.183Z","updated_at":"2026-07-06T11:30:49.643Z","avatar_url":"https://github.com/aeckar.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taped\n\nA lightweight cursor for non-linear parsing of byte slices.\n\n[![Rust](https://github.com/aeckar/taped/actions/workflows/rust.yml/badge.svg)](https://github.com/aeckar/taped/actions/workflows/rust.yml)\n[![Crates.io](https://img.shields.io/crates/v/taped.svg)](https://crates.io/crates/taped)\n\n## Documentation\n\n[https://docs.rs/taped](https://docs.rs/taped)\n\n## Overview\n\n`Tape` wraps a byte slice with a position cursor, providing methods for\nscanning, backtracking, and consuming bytes without allocating.\n\n- Optimized character and string search via [`memchr`](https://github.com/BurntSushi/memchr)\n    - Controlled by `intrinsics` feature flag\n- Simple lookahead and lookbehind of whitespace characters\n- Indentation counting and paragraph/line awareness\n\nOriginally developed as the byte reader for [`bincake`](https://github.com/aeckar/bincake),\nextracted as a standalone primitive after the same pattern appeared\nacross multiple projects.\n\n## Example\n\n```rust\nuse taped::ToTape;\n\nlet data = b\"hello world!\";\nlet mut tape = data.to_tape();\n\ntape.seek(|ch, _| ch == b' '); // advance to space\ntape.adv(); // skip one character\nlet word = tape.consume(|ch, _| ch != b'!'); // consume \"hello\"\nassert_eq!(word, b\"hello\");\nassert_eq!(tape.rest(), b\"!\");\n```\n\n## When to use this\n\n- Writing a parser for a binary or text format\n- Scanning byte sequences without regex or [`nom`](https://github.com/rust-bakery/nom)\n- Anywhere you need backtracking via cheap position snapshots (`tape.clone()`)\n\n## When not to use this\n\n- Full parser combinator framework → use [`nom`](https://github.com/rust-bakery/nom) or [`winnow`](https://github.com/winnow-rs/winnow)\n- Lexer generation → use [`logos`](https://github.com/maciejhirsz/logos)\n- Async byte streams → use [`tokio::io::AsyncBufRead`](https://docs.rs/tokio/latest/tokio/io/trait.AsyncBufRead.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeckar%2Ftaped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faeckar%2Ftaped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faeckar%2Ftaped/lists"}