rustonaut / vec1

Rust `Vec<T>` wrapper that gurantees to contain at least 1 element
Apache License 2.0
90 stars 15 forks source link

impl serde::Serialize for Vec1 #15

Closed eignnx closed 4 years ago

eignnx commented 4 years ago

Hi, I wanted to use this crate, but I'm not sure I can because I need serde::Serialize implemented. Any way y'all could impl that trait for Vec1? Maybe hide it behind a feature flag so that everyone who uses the crate doesn't need to pull in serde?

yannleretaille commented 4 years ago

Luckily, there already is a "serde" feature flag ☺ Unfortunately, the readme is not mentioning it at the moment, but you can find it in the docs!

eignnx commented 4 years ago

Ahhh, thank you!!! Yeah, that would be great if we could mention that feature in the README. Thanks again!