| Crates.io | bridgerust |
| lib.rs | bridgerust |
| version | 0.1.2 |
| created_at | 2026-01-05 08:13:14.033009+00 |
| updated_at | 2026-01-13 14:59:57.908764+00 |
| description | Write Rust once, deploy to Python and Node.js |
| homepage | https://bridgerust.dev |
| repository | https://github.com/bridgerust/bridgerust |
| max_upload_size | |
| id | 2023396 |
| size | 35,097 |
Write Rust once, deploy to Python and Node.js.
BridgeRust is a unified framework for building cross-language Rust libraries. It eliminates the complexity of managing separate bindings for PyO3 (Python) and napi-rs (Node.js) by providing a single, unified macro system.
Website: bridgerust.dev
#[bridgerust::export] macro handles both Python and Node.js generation.BridgeRust is currently SDK-Ready and ideal for:
async/await and complex JSON objects.Add to your Cargo.toml:
[dependencies]
bridgerust = "0.1"
Annotate your Rust functions:
use bridgerust::export;
#[export]
pub fn greet(name: String) -> String {
format!("Hello, {}!", name)
}
BridgeRust creates standard Python wheels and Node.js native modules.
# Install the CLI
cargo install --path cli/bridge
# Initialize a new project
bridge init my-project
# Build for all targets
bridge build --all
# Run tests
bridge test --all
# Publish packages
bridge publish --all
# Build for Python
cargo build --features python
# Build for Node.js
cargo build --features nodejs
use bridgerust::export;
#[export]
pub fn greet(name: String) -> String {
format!("Hello, {}!", name)
}
#[export]
pub struct Point {
pub x: f64,
pub y: f64,
}
Build and use from both Python and Node.js with a single command!