passcod / libtailscale

Tailscale C library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsnet - bindings for libtailscale.

libtailscale is a C library that embeds Tailscale into a process. tsnet is a Rust crate wrapping libtailscale and exposing a Rust-y API on top.

Use this library to compile Tailscale into your program and get an IP address on a tailnet, entirely from userspace.

Requirements

  • Rust compiler & Cargo
  • Go v1.21 or higher

Getting started

After running cargo init add the following lines to your Cargo.toml file:

tsnet = { version = "0.1.0", git = "https://github.com/passcod/libtailscale" }

API documentation

Development

Build with

cargo build

Run tests with

cargo test

Run the examples with

cargo run --example echo_server
cargo run --example echo_client

Bugs

Please file any issues about this code or the hosted service on the issue tracker.

License

BSD 3-Clause for this repository, see LICENSE.

About

Tailscale C library

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 33.2%Language:Go 20.0%Language:Ruby 18.0%Language:C 12.5%Language:Python 9.7%Language:C++ 2.5%Language:Nix 1.8%Language:Makefile 1.8%Language:CMake 0.5%