automorph-derive 0.1.0

Derive macros for automorph - Automerge-Rust struct synchronization
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 116.63 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 562.98 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dpp

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.