rmp_serde::to_writer
Open
- Dominant language
- Rust
- Stars
- 1.4k
- Forks
- 162
- PR merge metrics
- No merged PRs in 30d
Description
From quite a few data format used with serde have the same interface where I could use the same `to_writer` and I was surprised that msgpack-rust did differently (unexpected for me).
```rust
let mut buffer = File::create("test").expect("serialize");
serde_cbor::to_writer(&mut buffer, &data);
serde_json::to_writer(&mut buffer, &data);
```
Of course, I figured out later that I could:
```rust
rmp_serde::encode::write(&mut buffer, &data);
```
Is there any plan if the api will be generalized or any reason to use a different syntax even though each of them does the same?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.