Rust client for the Tailscale Local API
MIT License
This is a rust crate designed to interact with the Tailscale local API. On Linux and other Unix-like systems, this is through a unix socket. On macOS and Windows, this is through a local TCP port and a password. The Tailscale localapi is large but so far this crate does:
tailscale status
)tailscale cert
)This crate uses hyper and requires tokio and async rust.
let socket_path = "/var/run/tailscale/tailscaled.sock";
let client = tailscale_localapi::LocalApi::new_with_socket_path(socket_path);
dbg!(client.status().await.unwrap());