Commit 908d921
Drew Robinson
Replace unmaintained bincode with postcard serialization
bincode has been marked as unmaintained (RUSTSEC-2025-0141). This commit
replaces it with postcard, which:
- Has an API compatible with bincode (serialize/deserialize)
- Is actively maintained by James Munns with 114+ libraries
- Offers comparable performance and better binary size
- Is well-suited for the RPC parameter passing use case
Changes:
- Update Cargo.toml files: bincode -> postcard with use-std feature
- Replace bincode::serialize with postcard::to_stdvec
- Replace bincode::deserialize with postcard::from_bytes
- Update error type conversions from bincode::Error to postcard::Error
- Rename internal types (BincodeValue -> PostcardValue) for clarity
All tests pass except for unrelated bottomless integration test.1 parent b5dab26 commit 908d921
File tree
9 files changed
+142
-47
lines changed- libsql-replication
- libsql-server
- src
- rpc
- libsql
- src
9 files changed
+142
-47
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
| 247 | + | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments