This code is unstable, has not been reviewed and might leak your private keys (I hope not, though).
A program that manages p2p endpoints for WireGuard devices
It contains of two tools:
# setup wireguard interface
sudo wg-quick up wg0
# start client
sudo RUST_LOG=wg_p2p wg-p2p -i wg0