🦀 Blazingly Fast & Memory Safe
TuskLang Logo PNT

TuskLang for
Rust

Build blazingly fast, memory-safe configurations for Rust applications. Zero-cost abstractions meet intelligent configuration management.

cargo
Package Manager
0ms
Runtime Overhead
100%
Memory Safe

Rust-First Configuration Language

Compile-time configuration validation with zero-cost runtime performance.

@

@ Operators for Rust

Execute safe Rust code, query databases with async/await, and access environment variables with compile-time checks.

sqlx

Async Database Integration

Native async/await support with sqlx, diesel, and sea-orm. Query your database safely with compile-time SQL validation.

Zero-Cost Abstractions

Configuration parsing happens at compile time. Zero runtime overhead with full type safety and memory guarantees.

Axum & Actix Ready

Built-in integration for Axum, Actix-web, Warp, and other Rust web frameworks. Middleware and extractors included.

Hot Reload Development

Development-friendly hot reloading with file watching. Changes recompile and reload instantly during development.

cargo test

Cargo Test Integration

Built-in cargo test support with property-based testing, benchmarks, and configuration mocking utilities.

Memory Safe Configuration

Compile-time configuration validation with zero runtime overhead. Full type safety and memory guarantees.

  • 🦀 Memory safe by design
  • ⚡ Zero-cost abstractions
  • 🔒 Compile-time validation
  • 🚀 Async/await support
  • 📦 Cargo crate ready
config.tsk
# Memory-Safe Rust Configuration
app_name: "MyRustApp"
log_level: @env("LOG_LEVEL", "info")

# Database with async queries
database {
    url: @env("DATABASE_URL")
    pool_size: @query("SELECT optimal_pool FROM system_config").await?
    timeout: "30s"
}

# Performance optimization
performance {
    workers: @optimize("worker_count", num_cpus::get())
    cache_size: @learn("optimal_cache", 1024)
    enable_simd: true
}

# Type-safe feature flags
features: @query("SELECT name FROM features WHERE enabled = true")
    .map(|row| row.get::("name"))
    .collect::>()

Rust Ecosystem Integration

Works seamlessly with your favorite Rust crates and frameworks

Axum

Web framework

Actix-web

HTTP server

sqlx

Async SQL toolkit

Diesel

ORM and query builder

Tokio

Async runtime

Serde

Serialization

Get Started in Minutes

Install TuskLang for Rust and start building memory-safe configurations

1 Add to Cargo.toml

cargo add tusklang

2 Create your configuration

# config.tsk
app_name: "MyRustApp"
debug: @env("DEBUG", false)

3 Load in your Rust app

use tusklang::TuskLang;
let config = TuskLang::load("config.tsk")?;
Complete Guide View Examples