{"id":28301124,"url":"https://github.com/kyza/only_alloc","last_synced_at":"2026-02-28T06:20:03.792Z","repository":{"id":291703695,"uuid":"978470141","full_name":"Kyza/only_alloc","owner":"Kyza","description":"An allocator wrapper that disables deallocating memory within it.","archived":false,"fork":false,"pushed_at":"2025-05-06T23:22:42.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-05-31T01:54:07.883Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kyza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-05-06T03:23:23.000Z","updated_at":"2025-05-07T00:02:14.000Z","dependencies_parsed_at":"2025-05-06T05:40:56.605Z","dependency_job_id":null,"html_url":"https://github.com/Kyza/only_alloc","commit_stats":null,"previous_names":["kyza/only_alloc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kyza/only_alloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fonly_alloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fonly_alloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fonly_alloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fonly_alloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kyza","download_url":"https://codeload.github.com/Kyza/only_alloc/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kyza%2Fonly_alloc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260119326,"owners_count":22961508,"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":"2025-05-23T19:12:27.026Z","updated_at":"2025-10-28T10:05:02.932Z","avatar_url":"https://github.com/Kyza.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# only_alloc\n\n[![github.com](https://img.shields.io/badge/github-kyza/only_alloc-fffffe?style=for-the-badge\u0026labelColor=555555\u0026logo=github)](https://github.com/kyza/only_alloc)\n[![crates.io](https://img.shields.io/crates/v/only_alloc.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust)](https://crates.io/crates/only_alloc)\n[![docs.rs](https://img.shields.io/badge/docs.rs-only_alloc-353535?style=for-the-badge\u0026labelColor=555555\u0026logo=docs.rs)](https://docs.rs/only_alloc)\n\n`only_alloc` wraps another allocator and disables deallocating memory within it.\n\nIt can be used either as a global allocator or as an allocator from `#![feature(allocator_api)]`.\n\nIt can be used with `no_std` environments and it contains zero dependencies.\n\n```rs\nuse mimalloc::MiMalloc;\nuse only_alloc::GlobalOnlyAlloc;\n\n#[global_allocator]\nstatic ONLY_MIMALLOC: GlobalOnlyAlloc\u003cMiMalloc\u003e = GlobalOnlyAlloc(MiMalloc);\n```\n\n## Installation\n\n```bash\ncargo add only_alloc\n```\n\n## Why?\n\nMaybe you have a use for this because I don't. It might be microscopically faster for CLI tools. I simply enjoyed writing it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyza%2Fonly_alloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyza%2Fonly_alloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyza%2Fonly_alloc/lists"}