Commit graph

39 commits

Author SHA1 Message Date
Andrew Jeffery
8b3938c2e7
Rename UncompressedChange to Change (#173)
It wasn't really uncompressed as we have compressed and uncompressed
changes in the backend. It is just not encoded into the binary format.
The module separation (protocol vs backend) should help with the
distinction.
2021-06-16 11:50:26 +01:00
Vedant Roy
60c04c13a4 add c binding 2021-05-24 13:15:20 -07:00
Vedant Roy
ddc9c6d4ce Add missing Safety header 2021-05-18 16:25:19 -04:00
Vedant Roy
4b7886dfe6 Remove unused var 2021-05-18 16:25:19 -04:00
Vedant Roy
98c6ac876d Implement encode/decode for SyncState 2021-05-18 16:25:19 -04:00
Orion Henry
f47ba3c46a small error slipped through 2021-05-18 10:59:39 -04:00
Vedant Roy
6a4a3c5a00 Don't use ..Default::default() + formatting? 2021-05-18 07:50:35 -07:00
Vedant Roy
1b76115f27 Add unsafe docs + remove extraneous file 2021-05-18 07:50:35 -07:00
Vedant Roy
305d089180 Add untested C-bindings for sync state 2021-05-18 07:50:35 -07:00
Andrew Jeffery
641fd11703
Change init to new and add defaults (#130)
Structs should use `new` for the constructor name and implement
`Default` where they can.
2021-05-14 21:35:09 +01:00
Andrew Jeffery
d1934f2286 Add formatting config 2021-04-26 09:42:36 -07:00
Andrew Jeffery
ef36eba694 Allow passing heads to automerge c backend's get_missing_deps 2021-04-24 14:25:31 -07:00
Andrew Jeffery
3eeb825138 Initial sync work 2021-04-24 14:25:31 -07:00
Martin Kleppmann
38214ca21e
Merge pull request #65 from automerge/implement-compression
Implement compression
2021-04-02 17:47:39 +01:00
Andrew Jeffery
d17554dfc4 Remove rc on backend 2021-03-31 08:59:38 -07:00
Alex Good
82cf04ae49 Implement compression 2021-03-27 16:52:43 +00:00
Alex Good
b0fc259892 Run clippy and cargo fmt 2021-02-03 16:39:38 +00:00
Orion Henry
740315cdc4 added get_last_local_change() 2021-02-02 15:17:48 -05:00
Orion Henry
78024fd000 add automerge_get_heads() and automerge_error() 2021-02-02 14:33:00 -05:00
Alex Good
497372db99 Immutable frontend rewrite 2021-01-16 17:40:47 +00:00
Alex Good
ce38f5360b Move automerge_backend::UnencodedChange -> automerge_protocol::UncompressedChange 2021-01-14 12:30:25 -05:00
Orion Henry
c859b24a12 fix c api 2021-01-12 15:33:10 -05:00
Orion Henry
2019a2bd1a update c api to undo api changes 2020-12-17 20:53:15 -05:00
Orion Henry
ce75f5e29e add a deserializer for message 2020-06-05 17:48:51 -04:00
Orion Henry
d53eae1e94 add change encode and decode to the API 2020-06-05 12:03:38 -04:00
Orion Henry
20856bfdd9 fmt 2020-05-22 19:22:29 -04:00
Orion Henry
4cc6eb263d remove the unwrap i introduced with ActorID::try_from 2020-05-22 19:22:17 -04:00
Orion Henry
48dfd6f29a ActorID is now bytes 2020-05-22 19:00:39 -04:00
Orion Henry
87b44cf977 ChangeRequest->Request 2020-05-22 16:11:26 -04:00
Orion Henry
e9c03ccdaa BinChange is now Change 2020-05-22 15:16:42 -04:00
Orion Henry
92d357efe7 break out change - do some cleanup 2020-05-22 14:57:51 -04:00
Orion Henry
89a1ed46f7 move change back to the backend repo 2020-05-22 13:54:02 -04:00
Orion Henry
ad1b1490d8 fmt 2020-05-21 19:05:57 -04:00
Orion Henry
2d31ed09cc canonical BinChange wip 2020-05-21 18:53:07 -04:00
Orion Henry
df3f4f2eba c interface v2 2020-05-13 15:37:46 -04:00
Alex Good
f91aa3375b Remove From<&[u8]> for ChangeHash and add TryFrom<&[u8]> 2020-05-10 14:32:13 +01:00
Alex Good
1839348109 Remove pub export automerge_protocol:{..} from automerge-backend 2020-05-10 14:00:38 +01:00
Orion Henry
c45351b121 first cut of the C api 2020-05-07 07:57:34 -07:00
Orion Henry
c6b6d59aa1 bugfix in RLE encode/decode 2020-05-06 10:31:50 -07:00