Crates.io | libcfd |
lib.rs | libcfd |
version | 0.1.0 |
source | src |
created_at | 2024-02-09 16:49:56.06506 |
updated_at | 2024-02-09 16:49:56.06506 |
description | A port of cloudflared (Cloudflare Tunnel Client) to Rust. |
homepage | |
repository | https://github.com/apersomany/libcfd |
max_upload_size | |
id | 1134144 |
size | 228,908 |
A port of cloudflared (Cloudflare Tunnel Client) to Rust.
LibCFD intends to be lightweight and programmable replacement for cloudflared and its command line wrappers. The main advantage of LibCFD is that we don't have to spawn a whole new process (that uses a garbage collected runtime) to connect to Cloudflare. Thanks to this, we can save on resources by removing the IPC and GC overheads.
The currently supported features are
Aside form those already listed above, these two are some to dos I am lookning forward to
Work in progress. Seems to be able to hit 1gbps at least.
Creates a HTTP server that sends simple "hello world" response.
cargo run --example http_hello_world
Creates a HTTP server that sends data as fast as possible.
cargo run --example http_download
Creates a HTTP server that receives data as fast as possible.
cargo run --example http_upload
Creates a WebSocket server that echos all received Websocket messages.
cargo run --example websocket_echo