unit-proc 0.0.3

Procedual macros for physical quantities.
Documentation
use unit_proc::unit;
use physical_quantity:: { Dim, Unit };
use typenum:: { self, Z0, P1, N2 };
use const_frac::Frac;

fn main() {
    let a = unit!(self, "kg m/s2");

    assert_eq!(
        a,
        Unit {
            a: 1000.0,
            b: 0.0,
            dim: Dim::<P1, P1, N2, Z0, Z0, Z0, Z0>::new(),
        }
    );

//    let a = unit!(self, "\u{2014}");
    let a = unit!(self, "%");

    assert_eq!(
        a,
        Unit {
            a: 0.01,
            b: 0.0,
            dim: Dim::<Z0, Z0, Z0, Z0, Z0, Z0, Z0>::new(),
        }
    );
}