Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffa5/automergeable
https://github.com/jeffa5/automergeable
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeffa5/automergeable
- Owner: jeffa5
- License: mit
- Created: 2021-02-23T14:33:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-26T20:49:48.000Z (about 2 years ago)
- Last Synced: 2023-03-03T16:09:59.627Z (over 1 year ago)
- Language: Rust
- Size: 236 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automergeable
Taking inspiration for a typed [automerge](https://github.com/automerge/automerge) from [here](https://github.com/automerge/automerge-rs/issues/22).
- Derive functionality to convert to and from automerge `Value`s.
- Be able to perform diffs on these types.
- Use a custom `Document` for your type to facilitate more natural interactions.**Very alpha**
```rust
#[derive(Automergeable)]
struct A {
#[automergeable(representation = "text")]
some_text: String,
#[automergeable(representation = "counter")]
a_counter: i64,
#[automergeable(representation = "timestamp")]
a_timestamp: i64,
b: B,
}#[derive(Automergeable)]
struct B {
inner: u64,
}
```## Fuzzing
Run fuzzing tests from the `automergeable` directory with `cargo fuzz run fuzz_target_1`.