Crates.io | tsnet |
lib.rs | tsnet |
version | 0.1.0 |
source | src |
created_at | 2023-03-12 18:49:42.777452 |
updated_at | 2023-03-12 18:49:42.777452 |
description | Compile Tailscale into your program and get an entirely userspace IP address on a tailnet. |
homepage | |
repository | https://github.com/badboy/libtailscale |
max_upload_size | |
id | 808223 |
size | 92,607 |
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.
After running cargo init
add the following lines to your Cargo.toml
file:
tsnet = "0.1.0"
Build with
cargo build
Run tests with
cargo test
Run the examples with
cargo run --example echo_server
cargo run --example echo_client
Please file any issues about this code or the hosted service on the issue tracker.
BSD 3-Clause for this repository, see LICENSE.