#nebula #cgo #interface #communicating #function #c-go

nebula-ffi

A Rust wrapper crate for communicating with Nebula via a CGO FFI

6 releases (2 stable)

1.8.1 Dec 29, 2023
1.7.2 Oct 9, 2023
0.2.0 Sep 26, 2023
0.1.4 Jul 19, 2023
0.1.3 Jun 27, 2023

#1441 in Database interfaces


Used in tfclient

GPL-3.0-or-later

20KB
420 lines

Nebula-FFI

A CGO FFI interface for Nebula and a Rust crate for communicating with it.


lib.rs:

nebula-ffi

nebula-ffi is a crate for interacting with the Nebula project via a CGo compatability layer. It provides support for running a Nebula VPN directly from a Rust binary, liken to how the default nebula binary functions.

Versioning

nebula-ffi is automatically updated for every single release or commit made on the slackhq/nebula repository. To build against a specific release:

[dependencies]
nebula-ffi = { version = "1.7.2" } # for Nebula 1.7.2

To build against a specific commit:

[dependencies]
nebula-ffi = { version = "1.7.2+83b6dc7" } # for commit 83b6dc7, which happened *after* the 1.7.2 release

This versioning is an artifact of the build process for nebula-ffi and how Cargo versioning works.

No runtime deps

~0–2.2MB
~45K SLoC