Skip to content

mattbullen/node-rust-ffi

Repository files navigation

Rust FFI via a Node.js websocket

In progress - another sample app for learning the Rust language. It's a basic Node.js websocket-based server that runs Rust code through an FFI/foreign function interface.

Right now, it just takes a string and sends it to the server via a websocket. The server runs the string through wrappered Rust code, then returns a JSON object to the browser with details about the request and the character count of the string (based on this example).

This is a Heroku app running on Linux - I also wrote a Windows-compatible version, in the "windows" folder, that runs on localhost:5000.

About

Run Rust code via a Node.js websocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published