17 releases
new 0.1.16 | Apr 30, 2025 |
---|---|
0.1.15 | Apr 21, 2025 |
0.1.13 | Mar 28, 2025 |
0.1.11 | Feb 19, 2025 |
0.1.3 | May 20, 2024 |
#20 in #internet
312 downloads per month
63KB
1.5K
SLoC
tnnl
tnnl ("tunnel") gives you full control over whether and when your IoT devices should be reachable from the internet.
It provides secure access from distant networks - anywhere in the world.
lib.rs
:
Client library for tnnl
This library is for writing rust clients that are using tnnl.
tnnl ("tunnel") gives you full control over whether and when your IoT devices should be reachable from the internet. It provides secure access from distant networks - anywhere in the world.
You can use [tnnl_main] to start tnnl with configuration from envionment variables.
use tnnl::tnnl_main;
tnnl_main();
Or you can use builder::Builder if you want to have more control over the tnnl connection.
use tnnl::builder::*;
use tnnl::rules::*;
Builder::new(&"MY_SECRET_TOKEN")
.with_client_name(&"MY_CLIENT_NAME")
.with_client_id(&"MY_CLIENT_ID")
.with_rule(Rule::parse("*:*-*:*")?)
.connect().await?;
Dependencies
~5–18MB
~271K SLoC