#wireguard #bindings #networking #safe #access

wgbind

Wireguard bindings and wrapper around bindings for safe access - WIP

8 releases

0.2.2 Nov 10, 2023
0.2.1 Nov 9, 2023
0.1.4 Nov 8, 2023

#26 in #wireguard

50 downloads per month

MIT license

120KB
2.5K SLoC

C 1.5K SLoC // 0.0% comments Rust 1K SLoC // 0.0% comments

This is an early work in progress project. please do not expect an stable api anytime soon


lib.rs:

Wrapper around the wireguard c library originating from Jason A. Donenfeld Jason@zx2c4.com

Provides an abstraction around the c ffi bindings. This should allow to invoke Wireguard function within safe rust code. Be aware to run these methods the programm requires the priviliges to change your network settings. Most likely root rights! otherwise calling the methods will fail.

The same is true if you attempt to run any tests.

Dependencies

~0–2.2MB
~44K SLoC