staticvec 0.3.5

Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.
Documentation
use serde::{Deserialize, Serialize};
use staticvec::*;

#[derive(Serialize, Deserialize)]
struct MyStruct {
  value: &'static str,
}

fn main() {
  let structs = staticvec![
    MyStruct { value: "Serde" },
    MyStruct { value: "sure" },
    MyStruct { value: "makes" },
    MyStruct { value: "this" },
    MyStruct { value: "really" },
    MyStruct { value: "easy!" },
  ];
  println!(
    "{}",
    serde_json::to_string_pretty(&structs).expect("You should never see this!")
  );
}