# automorph-derive
Derive macros for the [automorph](https://crates.io/crates/automorph) crate.
This crate provides the `#[derive(Automorph)]` macro for automatic bidirectional synchronization between Rust types and Automerge documents.
## Usage
This crate is typically not used directly. Instead, add `automorph` to your dependencies:
```toml
[dependencies]
automorph = "0.1"
```
The derive macro is re-exported from the main crate:
```rust
use automorph::Automorph;
#[derive(Automorph, Clone, PartialEq, Default)]
struct Person {
name: String,
age: u64,
}
```
## Documentation
See the [automorph documentation](https://docs.rs/automorph) for complete usage information.
## License
Licensed under either of Apache License, Version 2.0 or MIT license at your option.