mujoco-rs-derive 0.1.0

Internal procedural macros for the mujoco-rs crate. Not for direct use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Procedural macros for the [`mujoco-rs`](https://crates.io/crates/mujoco-rs) crate.

extern crate proc_macro;

mod three_way_merge;

use proc_macro::TokenStream;

/// Derives `ThreeWayMerge` for a struct with named fields.
///
/// This macro is an implementation detail of `mujoco-rs` and is not intended
/// for direct use outside of that crate.
#[proc_macro_derive(ThreeWayMerge)]
pub fn derive_three_way_merge(input: TokenStream) -> TokenStream {
    three_way_merge::derive(input)
}