An open API service indexing awesome lists of open source software.

https://github.com/ivanceras/rust-node-ffi-string

A very practical example of rust and node ffi call using string, json
https://github.com/ivanceras/rust-node-ffi-string

Last synced: 9 months ago
JSON representation

A very practical example of rust and node ffi call using string, json

Awesome Lists containing this project

README

          

Most of rust-ffi to nodejs example is returning an integer. This is not so practical at all, since we want to call a feature complete api.

By feature complete I mean JSON as both argument and return

## Install node ffi

```sh
npm install ffi --save
```

## Build and run!

```sh
cargo build --release
node string.js
````