Skip to content
Rabat, Morocco
Projects

BridgeRust – One Rust Core, Every Ecosystem

Cover for BridgeRust – One Rust Core, Every Ecosystem
January 8, 2026
BridgeRust is a unified framework that lets you write your library once in Rust and automatically deploy native, high-performance bindings to both Python and Node.js. Stop juggling PyO3 and NAPI-RS. Stop maintaining multiple codebases. Write once, deploy everywhere with zero boilerplate.
use bridgerust::export;

#[export]
pub fn greet(name: String) -> String {
    format!("Hello, {}!", name)
}

#[export]
pub struct Point {
    pub x: f64,
    pub y: f64,
}
That's it. BridgeRust generates Python wheels and Node.js native addons automatically. No more manual PyModule or napi_register_module definitions. Just tag your code with #[export] and BridgeRust handles the rest. Before: 50+ lines of boilerplate
After: One #[export] macro
Your code runs at Rust speeds with minimal overhead. Zero-cost abstractions where possible, native performance everywhere. BridgeRust automatically handles naming conventions:
  • Rust's snake_case → Python's snake_case
  • Rust's snake_case → JavaScript's camelCase
Your users get native-feeling APIs in every language.
# Install the CLI
cargo install bridge

# Initialize a new project
bridge init my-awesome-lib

# Write your Rust code with #[export] macros
# Build for all platforms
bridge build --all

# Publish to PyPI and npm
bridge publish
✅ Unified Macro System - One #[export] macro for all languages
✅ Automatic Type Conversions - Vec, Option, Result handled automatically
✅ Async Support - Works with Python's asyncio and Node.js promises
✅ Custom Types - Your structs become classes in both languages
✅ Integrated CLI - Build, test, and publish with one command
✅ Zero Boilerplate - No manual binding code required
Embex - A universal vector database ORM built with BridgeRust. One Rust codebase powers both Python (pip install embex) and Node.js (npm install @bridgerust/embex) packages. By using BridgeRust, we maintained a single codebase for connection pooling, SIMD operations, and retry strategies while offering native packages for both ecosystems.
  • Performance-Critical Libraries - Math, cryptography, data processing
  • Infrastructure Tools - Database clients, network libraries, file systems
  • AI/ML Libraries - Vector operations, model inference, data pipelines
  • Cross-Platform Tools - Utilities that need to work in multiple ecosystems
🎯 One Codebase - Write once, maintain once
🎯 Consistency - Same features and bug fixes across all languages
🎯 Performance - Rust speed with zero-cost abstractions
🎯 Developer Experience - Simple CLI, zero boilerplate

Stop writing glue code. Start building bridges.