6 releases
0.1.5 | May 6, 2021 |
---|---|
0.1.4 | May 6, 2021 |
0.1.2 | Apr 12, 2021 |
0.1.0 | Dec 30, 2020 |
205 downloads per month
10KB
158 lines
- A rust library for interacting with the Tailscale API.
- For more information, the Tailscale API is still in beta. The docs are
- here: https://github.com/tailscale/tailscale/blob/main/api.md
- Example:
-
- use serde::{Deserialize, Serialize};
- use tailscale_api::Tailscale;
- async fn get_devices() {
-
// Initialize the Tailscale client.
-
let tailscale = Tailscale::new_from_env();
-
// List the devices.
-
let devices = tailscale.list_devices().await.unwrap();
-
println!("{:?}", devices);
- }
-
Dependencies
~5–18MB
~265K SLoC