#[derive(ToRon)] { // Attributes available to this derive: #[ron] }
Derive macro for serializing to RON without serde.
use ron2_derive::ToRon; use ron2::ToRon; #[derive(ToRon)] struct Point { x: f32, y: f32, } let point = Point { x: 1.0, y: 2.0 }; let ron = point.to_ron().unwrap();