automorph-derive 0.2.0

Derive macros for automorph - Automerge-Rust struct synchronization
Documentation

automorph-derive

Derive macros for the 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:

[dependencies]
automorph = "0.1"

The derive macro is re-exported from the main crate:

use automorph::Automorph;

#[derive(Automorph, Clone, PartialEq, Default)]
struct Person {
    name: String,
    age: u64,
}

Documentation

See the automorph documentation for complete usage information.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.