VSTP

Vishu's Secure Transfer Protocol

A modern, high-performance protocol for secure data transfer. Built with Rust, featuring automatic serialization, built-in security, and support for both TCP and UDP.

Secure by Default

Built-in TLS 1.3 encryption for TCP connections and application-level security for UDP.

High Performance

Optimized for both TCP reliability and UDP speed with automatic message routing.

Easy to Use

Simple API with automatic serialization, type safety, and comprehensive error handling.

Get Started in Minutes

Add VSTP to your Rust project and start building secure applications

Terminal
# Add to Cargo.toml
[dependencies]
vstp = "0.2.1"
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }

# Server
use vstp::easy::VstpServer;
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
struct Message { content: String }

let server = VstpServer::bind_tcp("127.0.0.1:8080").await?;
server.serve(|msg: Message| async move { Ok(msg) }).await?;

# Client  
use vstp::easy::VstpClient;

let client = VstpClient::connect_tcp("127.0.0.1:8080").await?;
client.send(Message { content: "Hello!".to_string() }).await?;
let response: Message = client.receive().await?;