Commit graph

50 commits

Author SHA1 Message Date
Vedant Roy
ddc9c6d4ce Add missing Safety header 2021-05-18 16:25:19 -04:00
Vedant Roy
0df5444669 Better sync test
Multiple round trips + exercise encode/decode
2021-05-18 16:25:19 -04:00
Vedant Roy
4b7886dfe6 Remove unused var 2021-05-18 16:25:19 -04:00
Vedant Roy
acf4f19cd5 Make comment clearer 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
c274d18528 Add test for sync c bindings 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
3a8447c068
Remove automerge bench harness (#106)
This removes the default wrapper which throws errors with some cli
arguments, e.g. --save-baseline which is nice for being able to compare
versions!
2021-04-27 10:30:07 +01:00
Andrew Jeffery
d1934f2286 Add formatting config 2021-04-26 09:42:36 -07:00
Orion Henry
5d0e1052cc update get_missing for c api 2021-04-26 11:18:59 -04: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
Orion Henry
ae56f0d12f explicitly use the static library 2021-04-03 12:31:13 -04: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
Matt Ho
3e72cf6df0 added cdylib to produce dynamic library 2021-02-12 11:56:24 -05: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
Orion Henry
f79f632d35 remove raw string literal from c test program 2021-02-01 12:22:11 -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
Martin Kleppmann
5ec8408398 Replace all-zeros UUID with '_root'
Corresponding to automerge/automerge@10ec271cbd
2021-01-12 14:45:32 -05:00
Orion Henry
2019a2bd1a update c api to undo api changes 2020-12-17 20:53:15 -05:00
Orion Henry
a584e202f1 adding getMissingDeps and getChanges to C API 2020-09-09 13:46:00 -04: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
26ded9e501 cleanup but git fmt 2020-05-15 14:48:31 -04:00
Alex Good
9bb374b492 Run rustfmt 2020-05-14 01:05:01 +01:00
Orion Henry
ee8505949d more tests in the C api 2020-05-13 16:53:03 -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