Skip to content

BridgeRust

Ship One Rust Core to Python & Node.js
npm downloadsPyPI monthly downloadsGitHub stars
50xFaster Critical Pathsreplace pure Python hot loops
10xLower Memorylean native runtime footprint
1 CoreTwo Language SDKssingle Rust codebase, dual distribution

BridgeRust wraps PyO3 and napi-rs behind one macro-first workflow.
You keep Rust-level performance and safety while shipping native packages to both Python and Node.js.

use bridgerust::prelude::*;
#[bridge]
struct Calculator {
value: f64,
}
#[bridge_methods]
impl Calculator {
#[constructor]
fn new() -> Self {
Self { value: 0.0 }
}
#[method]
fn add(&mut self, value: f64) {
self.value += value;
}
#[method]
fn get_value(&self) -> f64 {
self.value
}
}

One implementation. Two native SDKs. No duplicated glue code.



CapabilityBridgeRustSeparate Python + Node Implementations
Core logic duplicationNoneHigh
Native performanceYesDepends
Cross-language type consistencyStrongManual
Release workflowUnifiedSplit
Long-term maintenanceLowerHigher

Start Building Today

Install the CLI, scaffold your library, and ship Python + Node.js artifacts from one Rust project.