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