Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bincode 2-alpha.0 checklist #411

Closed
16 of 19 tasks
VictorKoenders opened this issue Oct 12, 2021 · 3 comments
Closed
16 of 19 tasks

Bincode 2-alpha.0 checklist #411

VictorKoenders opened this issue Oct 12, 2021 · 3 comments

Comments

@VictorKoenders
Copy link
Contributor

VictorKoenders commented Oct 12, 2021

  • Make bincode able to run without dependencies (Make bincode_derive 0 dependencies #409)
  • Implement Encodeable/Decodeable on the following types:
    • Basic types: bool, char
    • Compound types: tuples (up to 8 for now)
    • Common core types: Option<T>, Result<V, E>, Cell<T>, RefCell<T>
    • Less common core types: Duration, Range<T>, RangeInclusive<T>, Bound<T>, NonZero*
    • Wrapper types: Box<T>, Box<[T]>, Box<str>, Cow<'a, T>, Rc<T>, Arc<T>
    • Collections: BTreeMap<K, V>, BTreeSet<T>, BinaryHeap<T>, HashMap<K, V>, HashSet<T>, VecDeque<T>, Vec<T>
    • FFI types: CString, Box<CStr>, &CStr
    • Misc std types: Mutex, RwLock, SystemTime, Path, PathBuf
    • Net types: IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6
    • Atomic types (behind a feature flag, some platforms like cortex-m0 don't support atomics)
  • Implement encode/decode functions for the following types:
    • &mut [u8] / &[u8]
    • Vec<u8> / -
    • std::io::Write / std::io::Read
    • serde::ser::Serialize / serde::de::Deserialize
  • Settle on names for the bincode 1 config and bincode 2 config
  • Review trait names

(Work is being done in the feature/deserde branch)

@VictorKoenders
Copy link
Contributor Author

@VictorKoenders
Copy link
Contributor Author

Not going to support OsStr and OsString for now, serde does some dirty internal hacks and I'm not sure how many people use it
https://github.com/serde-rs/serde/blob/72060b779a6411800f0e7052898133539b6b4713/serde/src/de/impls.rs#L1610-L1677

@VictorKoenders
Copy link
Contributor Author

Bincode 2.0-alpha.0 is released!

https://docs.rs/bincode/2.0.0-alpha.0/bincode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant