{"id":33918597,"url":"https://github.com/acceptor-rs/acceptor-alloc","last_synced_at":"2026-01-13T22:01:55.832Z","repository":{"id":328288226,"uuid":"1107473629","full_name":"acceptor-rs/acceptor-alloc","owner":"acceptor-rs","description":"alloc-based acceptors built on the accepts core traits","archived":false,"fork":false,"pushed_at":"2025-12-01T07:28:59.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-21T01:43:51.321Z","etag":null,"topics":["acceptor","accepts","alloc","async","no-std","no-std-alloc","pipeline","rust"],"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/acceptor-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-01T07:27:46.000Z","updated_at":"2025-12-01T07:49:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/acceptor-rs/acceptor-alloc","commit_stats":null,"previous_names":["acceptor-rs/acceptor-alloc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acceptor-rs/acceptor-alloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceptor-rs%2Facceptor-alloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceptor-rs%2Facceptor-alloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceptor-rs%2Facceptor-alloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceptor-rs%2Facceptor-alloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acceptor-rs","download_url":"https://codeload.github.com/acceptor-rs/acceptor-alloc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acceptor-rs%2Facceptor-alloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["acceptor","accepts","alloc","async","no-std","no-std-alloc","pipeline","rust"],"created_at":"2025-12-12T08:26:27.416Z","updated_at":"2026-01-13T22:01:55.827Z","avatar_url":"https://github.com/acceptor-rs.png","language":"Rust","readme":"# acceptor-alloc\n\n[![Crates.io](https://img.shields.io/crates/v/acceptor-alloc.svg)](https://crates.io/crates/acceptor-alloc)\n[![Docs.rs](https://docs.rs/acceptor-alloc/badge.svg)](https://docs.rs/acceptor-alloc)\n[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue.svg)](LICENSE-MIT)\n[![CI](https://github.com/acceptor-rs/acceptor-alloc/actions/workflows/ci.yml/badge.svg)](https://github.com/acceptor-rs/acceptor-alloc/actions/workflows/ci.yml)\n\n`acceptor-alloc` is an `alloc`-powered bundle of acceptors built on the [`accepts`](https://crates.io/crates/accepts) core traits. It provides acceptors that require heap-backed collections without pulling in `std`.\n\n\u003e ⚠️ **Pre-release**: version 0.0.1 is experimental. APIs and crate layout may change without backward compatibility guarantees.\n\n## Add the dependency\n\n```toml\n[dependencies]\nacceptor-alloc = \"0.0.1\"\n```\n\n## Example: route `(Key, Value)` pairs using `BTreeKVRouter`\n\n```rust\nuse alloc::collections::BTreeMap;\nuse acceptor_alloc::BTreeKVRouter;\nuse accepts::Accepts;\n\n#[derive(Clone, Debug, Default)]\nstruct Sink;\nimpl Accepts\u003c(char, i32)\u003e for Sink {\n    fn accept(\u0026self, pair: (char, i32)) {\n        core::hint::black_box(pair);\n    }\n}\n\nlet mut routes = BTreeMap::new();\nroutes.insert('a', Sink);\n\n// fallback is a no-op `()`, which implements `Accepts`.\nlet router = BTreeKVRouter::new(routes);\n\nrouter.accept(('a', 1)); // routed to Sink\nrouter.accept(('z', 2)); // routed to fallback (no-op)\n```\n\n## Version map\n\n| acceptor-alloc | accepts |\n| --- | --- |\n| 0.0.1 | 0.0.2 |\n\n## More\n\nSee ARCHITECTURE.md for design notes and the broader acceptor series lineup.\n\n## License\n\nMIT OR Apache-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceptor-rs%2Facceptor-alloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facceptor-rs%2Facceptor-alloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facceptor-rs%2Facceptor-alloc/lists"}