Brian Gomberg
38e4450d02
Fixed bug with length not being set
2022-09-27 16:00:07 -07:00
Orion Henry
1c61986d33
clippy and fmt
2022-02-24 15:48:48 -05:00
Alex Good
5a26f8fcd1
Add missing licenses
2021-09-23 23:41:51 +01:00
Andrew Jeffery
3c786b26a8
Make apply_local_change return ref to change ( #231 )
...
* Make apply_local_change return ref to change
* Remove mut for change
* Document apply_local_changes
2021-07-29 17:41:56 +01:00
Andrew Jeffery
990d2bb4f3
Reduce deflate compression on the hot path ( #186 )
2021-07-13 11:04:39 +01:00
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
Andrew Jeffery
ad30c4ab4c
Dont document the C lib
...
This gives an error due to the duplicate name.
2021-05-24 13:18:44 -07: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
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