Skip to content

RisingStack/node-with-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-with-rust

This project tries to showcase how you can use Rust from Node.

Important things to notice:

in package.json

"install": "cargo build --release"

// this will make rust build when the packages are installed

in lib/index.js

Proper types: process: [ 'int', ['int', 'int'] ]

in src/embed.rs

Proper types again: pub extern fn process(a: i32, b: i32) -> i32 {

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published