Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 769 Bytes

README.md

File metadata and controls

9 lines (5 loc) · 769 Bytes

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.