hydro2-network-wire-derive 0.1.0

A procedural macro providing #[derive(NetworkWire)] for bridging Hydro2 operator wires and enumerating operator IO variants. It automatically handles generics, type parameters, and attribute parsing to unify wire and operator definitions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// ---------------- [ File: tests/trybuild/fail_non_string.rs ]
// tests/trybuild/fail_non_string.rs

use hydro2_network_wire_derive::NetworkWire;
use std::marker::PhantomData;

#[derive(NetworkWire)]
#[available_operators(op=123)]
pub struct MyWire<T> {
    _p: PhantomData<T>,
}

fn main() {}