The netlink-packet-wireguard crate is designed to paring and emitting generic netlink packet for wireguard interface. The goal of this crate is saving crate user from reading kernel netlink codes.
netlink-packet-wireguard