{"id":13503025,"url":"https://github.com/Lokathor/tinyvec","last_synced_at":"2025-03-29T13:30:34.579Z","repository":{"id":36948921,"uuid":"232219507","full_name":"Lokathor/tinyvec","owner":"Lokathor","description":"Just, really the littlest Vec you could need. So smol.","archived":false,"fork":false,"pushed_at":"2025-03-03T04:38:40.000Z","size":446,"stargazers_count":676,"open_issues_count":18,"forks_count":51,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-27T11:02:23.245Z","etag":null,"topics":["rust","zlib-license"],"latest_commit_sha":null,"homepage":"https://docs.rs/tinyvec","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/Lokathor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE.md","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":"2020-01-07T01:44:20.000Z","updated_at":"2025-03-24T08:55:31.000Z","dependencies_parsed_at":"2023-12-05T03:24:13.742Z","dependency_job_id":"834e3743-6cc8-40b0-9afd-015f47add39a","html_url":"https://github.com/Lokathor/tinyvec","commit_stats":{"total_commits":260,"total_committers":39,"mean_commits":6.666666666666667,"dds":0.3423076923076923,"last_synced_commit":"659e6c1f1f683b7504e71b6773cf0cdb86b1faf3"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokathor%2Ftinyvec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokathor%2Ftinyvec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokathor%2Ftinyvec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lokathor%2Ftinyvec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lokathor","download_url":"https://codeload.github.com/Lokathor/tinyvec/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832718,"owners_count":20679701,"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":["rust","zlib-license"],"created_at":"2024-07-31T22:02:33.870Z","updated_at":"2025-03-29T13:30:34.539Z","avatar_url":"https://github.com/Lokathor.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![License:Zlib](https://img.shields.io/badge/License-Zlib-brightgreen.svg)](https://opensource.org/licenses/Zlib)\n![Minimum Rust Version](https://img.shields.io/badge/Min%20Rust-1.47-green.svg)\n[![crates.io](https://img.shields.io/crates/v/tinyvec.svg)](https://crates.io/crates/tinyvec)\n[![docs.rs](https://docs.rs/tinyvec/badge.svg)](https://docs.rs/tinyvec/)\n\n![Unsafe-Zero-Percent](https://img.shields.io/badge/Unsafety-0%25-brightgreen.svg)\n\n# tinyvec\n\nA 100% safe crate of vec-like types.\nNot just safe at the public API boundary, fully safe for all internal code too: `#![forbid(unsafe_code)]`\n\nThe provided types are as follows:\n* `ArrayVec` is an array-backed vec-like data structure. It panics on overflow.\n* `SliceVec` is similar, but using a `\u0026mut [T]` as the data backing.\n* `TinyVec` (`alloc` feature) is an enum that's either an `Inline(ArrayVec)` or a `Heap(Vec)`.\n  If a `TinyVec` is `Inline` and would overflow its array it automatically transitions to `Heap` and continues whatever it was doing.\n\nTo attain this \"100% safe code\" status there is one compromise: the element type of the vecs must implement `Default`.\n\nFor more API details, please see [the docs.rs documentation](https://docs.rs/tinyvec/)\n\n## `tinyvec` Alternatives?\n\nMaybe you don't want to use `tinyvec`, there's other crates you might use instead!\n\n* [arrayvec](https://docs.rs/arrayvec) is a crate with array-backed structures.\n* [smallvec](https://docs.rs/smallvec) is a crate where the array-backed data can be moved to the heap on overflow.\n\nThe main difference is that both of those crates use `unsafe` code.\nThis mostly allows them to get rid of the `Default` limitation for elements that `tinyvec` imposes.\nThe `smallvec` and `arrayvec` crates are generally correct, but there's been occasional bugs leading to UB.\nWith `tinyvec`, any uncaught bugs *can't* lead to UB, because the crate is safe code all the way through.\nIf you want that absolute level of assurance against UB, use `tinyvec`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLokathor%2Ftinyvec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLokathor%2Ftinyvec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLokathor%2Ftinyvec/lists"}