{"id":13478708,"url":"https://github.com/servo/rust-smallvec","last_synced_at":"2025-05-14T23:00:26.222Z","repository":{"id":29910420,"uuid":"33456236","full_name":"servo/rust-smallvec","owner":"servo","description":"\"Small vector\" optimization for Rust: store up to a small number of items on the stack","archived":false,"fork":false,"pushed_at":"2025-04-28T14:18:27.000Z","size":758,"stargazers_count":1460,"open_issues_count":35,"forks_count":150,"subscribers_count":27,"default_branch":"v2","last_synced_at":"2025-05-07T22:01:59.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/servo.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}},"created_at":"2015-04-05T21:42:27.000Z","updated_at":"2025-05-07T18:41:57.000Z","dependencies_parsed_at":"2024-11-05T18:01:51.276Z","dependency_job_id":"c4381ead-b389-4330-8b1d-434c95bbd7c7","html_url":"https://github.com/servo/rust-smallvec","commit_stats":{"total_commits":317,"total_committers":85,"mean_commits":"3.7294117647058824","dds":0.6782334384858044,"last_synced_commit":"99e5c5ded0b1fd76191e2baf924c58e7f74ef6bf"},"previous_names":[],"tags_count":71,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servo%2Frust-smallvec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servo%2Frust-smallvec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servo%2Frust-smallvec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servo%2Frust-smallvec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/servo","download_url":"https://codeload.github.com/servo/rust-smallvec/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973690,"owners_count":21834108,"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-07-31T16:02:01.283Z","updated_at":"2025-05-14T23:00:26.057Z","avatar_url":"https://github.com/servo.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"rust-smallvec\n=============\n\n\u003e **⚠️ Note:**\n\u003e This is the code for smallvec 2.0, which is not yet ready for release.  For\n\u003e details about the changes in version 2.0, please see [#183], [#240], and [#284].\n\u003e\n\u003e The source code for the latest smallvec 1.x.y release can be found on the\n\u003e [v1 branch].  Bug fixes for smallvec 1 should be based on that branch, while\n\u003e new feature development should go on the v2 branch.\n\n[v1 branch]: https://github.com/servo/rust-smallvec/tree/v1\n[#183]: https://github.com/servo/rust-smallvec/issues/183\n[#240]: https://github.com/servo/rust-smallvec/issues/240\n[#284]: https://github.com/servo/rust-smallvec/issues/284\n\n## About smallvec\n\n[Documentation](https://docs.rs/smallvec/)\n\n[Release notes](https://github.com/servo/rust-smallvec/releases)\n\n\"Small vector\" optimization for Rust: store up to a small number of items on the stack\n\n## Example\n\n```rust\nuse smallvec::{SmallVec, smallvec};\n    \n// This SmallVec can hold up to 4 items on the stack:\nlet mut v: SmallVec\u003ci32, 4\u003e = smallvec![1, 2, 3, 4];\n\n// It will automatically move its contents to the heap if\n// contains more than four items:\nv.push(5);\n\n// SmallVec points to a slice, so you can use normal slice\n// indexing and other methods to access its contents:\nv[0] = v[1] + v[2];\nv.sort();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservo%2Frust-smallvec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservo%2Frust-smallvec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservo%2Frust-smallvec/lists"}