{"id":16064398,"url":"https://github.com/rust-embedded/fixedvec-rs","last_synced_at":"2025-03-16T08:32:06.367Z","repository":{"id":57630107,"uuid":"42131384","full_name":"rust-embedded/fixedvec-rs","owner":"rust-embedded","description":"Heapless vector implementation for Rust","archived":false,"fork":false,"pushed_at":"2021-05-31T16:17:56.000Z","size":40,"stargazers_count":47,"open_issues_count":9,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-16T00:11:16.355Z","etag":null,"topics":["embedded","no-std","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rust-embedded.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}},"created_at":"2015-09-08T18:31:45.000Z","updated_at":"2025-03-15T15:07:24.000Z","dependencies_parsed_at":"2022-09-26T20:11:13.246Z","dependency_job_id":null,"html_url":"https://github.com/rust-embedded/fixedvec-rs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Ffixedvec-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Ffixedvec-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Ffixedvec-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rust-embedded%2Ffixedvec-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rust-embedded","download_url":"https://codeload.github.com/rust-embedded/fixedvec-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"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":["embedded","no-std","rust"],"created_at":"2024-10-09T05:07:00.247Z","updated_at":"2025-03-16T08:32:06.100Z","avatar_url":"https://github.com/rust-embedded.png","language":"Rust","readme":"fixedvec\n========\n\n[![Build Status](https://img.shields.io/travis/rust-embedded/fixedvec-rs/master.svg)](https://travis-ci.org/rust-embedded/fixedvec-rs)\n[![Version](https://img.shields.io/crates/v/fixedvec.svg)](https://crates.io/crates/fixedvec)\n[![License](https://img.shields.io/crates/l/fixedvec.svg)](https://github.com/rust-embedded/fixedvec-rs/blob/master/README.md#license)\n\n- [API Documentation](http://docs.rs/fixedvec/)\n\n`fixedvec` is a Rust library/crate providing a heapless version of the Rust\nvector type. Although more limited than the libstd version, fixedvec provides a\nmuch-needed \"managed\" array type for embedded systems or other projects that\ncannot rely on the heap.\n\nInstall/Use\n-----------\n\n`fixedvec` is tested against the current stable, beta, and nightly, as well as\nthe previous two stable Rust releases.\n\nThe `#![no_std]` attribute is available in stable Rust, but building _binaries_\nwithout libstd still requires the nightly compiler.\n\nTo use `fixedvec`, add the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nfixedvec = \"*\"\n```\n\nThen add the following to your crate root:\n\n```rust,ignore\n#[macro_use] extern crate fixedvec;\n```\n\nExample\n-------\n\nBuffering and mutating a list of bytes:\n\n```rust\n#[macro_use] extern crate fixedvec;\n\nuse fixedvec::FixedVec;\n\nfn main() {\n    let mut preallocated_space = alloc_stack!([u8; 10]);\n    let mut vec = FixedVec::new(\u0026mut preallocated_space);\n    assert_eq!(vec.len(), 0);\n\n    vec.push_all(\u0026[1, 2, 3]).unwrap();\n    assert_eq!(vec.len(), 3);\n    assert_eq!(vec.as_slice(), \u0026[1, 2, 3]);\n\n    vec.map_in_place(|x: \u0026mut u8| { *x *= 2 });\n    assert_eq!(vec.as_slice(), \u0026[2, 4, 6]);\n}\n```\n\nMinimum Supported Rust Version (MSRV)\n-------------------------------------\n\nThis crate is guaranteed to compile on stable Rust 1.23.0 and up. It *might*\ncompile with older versions but that may change in any new patch release.\n\nLicense\n-------\n\n```ignore\nCopyright (c) 2015-2016, Nick Stevens \u003cnick@bitcurry.com\u003e\n\nThe MIT License (MIT)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Ffixedvec-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frust-embedded%2Ffixedvec-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frust-embedded%2Ffixedvec-rs/lists"}