21cd20ff26
This implements serde support under the optional 'serde' feature, and adds unit tests to test said support. https://serde.rs/unit-testing.html used as a guide for the unit tests - using 'serde_test' makes for much less boilerplate here, but it does require that the project have a non-optional dev dependency on 'serde_test'.
34 lines
761 B
TOML
34 lines
761 B
TOML
[package]
|
|
name = "arrayvec"
|
|
version = "0.3.21"
|
|
authors = ["bluss"]
|
|
license = "MIT/Apache-2.0"
|
|
|
|
description = "A vector with a fixed capacity, it can be stored on the stack too. Implements fixed capacity ArrayVec and ArrayString."
|
|
documentation = "https://docs.rs/arrayvec/"
|
|
repository = "https://github.com/bluss/arrayvec"
|
|
|
|
keywords = ["stack", "vector", "array", "data-structure", "no_std"]
|
|
|
|
[dependencies.odds]
|
|
version = "0.2.23"
|
|
default-features = false
|
|
|
|
[dependencies.nodrop]
|
|
version = "0.1.8"
|
|
path = "nodrop"
|
|
default-features = false
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dev-dependencies.serde_test]
|
|
version = "1.0"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = ["odds/std", "nodrop/std"]
|
|
use_union = ["nodrop/use_union"]
|