macro_rules! assert_abi {
($abi:path $(,)?) => { ... };
($abi:path, $snapshot_dir:expr $(,)?) => { ... };
}Expand description
Assert that a generated xabi contract layout matches its committed snapshot.
The first argument is a generated ABI type from #[xabi::xabi]. The optional
second argument overrides the snapshot directory, which defaults to
xabi/snapshots.
xabi_assert::assert_abi!(XabiV1AbiTraitDemo, "xabi/snapshots");