#stack #vector #array #data-structure #no-std

no-std arrayvec

A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString.

51 releases

0.7.2 Oct 28, 2021
0.7.1 Jun 5, 2021
0.7.0 Mar 29, 2021
0.5.2 Oct 23, 2020
0.3.9 Jul 30, 2015

#6 in Data structures

Download history 579343/week @ 2022-01-24 513158/week @ 2022-01-31 485405/week @ 2022-02-07 498390/week @ 2022-02-14 534965/week @ 2022-02-21 619340/week @ 2022-02-28 588938/week @ 2022-03-07 545511/week @ 2022-03-14 527693/week @ 2022-03-21 551786/week @ 2022-03-28 532558/week @ 2022-04-04 523424/week @ 2022-04-11 513600/week @ 2022-04-18 510388/week @ 2022-04-25 497225/week @ 2022-05-02 519466/week @ 2022-05-09

2,084,759 downloads per month
Used in 4,554 crates (408 directly)

MIT/Apache

68KB
1K SLoC

arrayvec

Crates.io: arrayvec Documentation Build Status

License: Apache OR License: MIT

A vector with fixed capacity.

Please read the API documentation here

License

Dual-licensed to be compatible with the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.


lib.rs:

arrayvec provides the types [ArrayVec] and [ArrayString]: array-backed vector and string types, which store their contents inline.

The arrayvec package has the following cargo features:

  • std

    • Optional, enabled by default
    • Use libstd; disable to use no_std instead.
  • serde

    • Optional
    • Enable serialization for ArrayVec and ArrayString using serde 1.x

Rust Version

This version of arrayvec requires Rust 1.51 or later.

Dependencies