Commit 32848aa
chore: migrate from bincode to postcard serialization
- Replace bincode with postcard in workspace dependencies
- Update all bincode::serialize() calls to postcard::to_stdvec()
- Update all bincode::deserialize() calls to postcard::from_bytes()
- Bump version from 0.8.2 to 0.8.3
- Updated files:
- Cargo.toml: workspace dependency change
- communitas-core/Cargo.toml: dependency + version constraint
- communitas-headless/Cargo.toml: version constraint
- communitas-mcp/Cargo.toml: version constraint
- gossip/context.rs: backup encryption/decryption
- gossip/boot.rs: CRDT delta serialization
- gossip/sites.rs: site protocol requests/responses
- gossip/backup.rs: backup data encryption
- gossip/sites_listener.rs: wire protocol handling
- gossip/sites_dispatcher.rs: message routing
- storage/local_storage.rs: shard serialization (commented code)
- presence_service.rs: beacon encryption
- doc_replicator.rs: encrypted document storage
- tests/sites_integration_test.rs: test serialization
Postcard provides deterministic, zero-copy serialization with
better performance characteristics than bincode.
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 888c7c8 commit 32848aa
15 files changed
Lines changed: 375 additions & 119 deletions
File tree
- communitas-core
- src
- gossip
- storage
- tests
- communitas-headless
- communitas-mcp
Some 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 | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
477 | | - | |
| 477 | + | |
478 | 478 | | |
479 | 479 | | |
480 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
0 commit comments