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
- Host: GitHub
- URL: https://github.com/ivanceras/rust-node-ffi-string
- Owner: ivanceras
- Created: 2015-11-26T18:22:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-02T10:19:13.000Z (about 8 years ago)
- Last Synced: 2024-10-30T00:44:02.772Z (about 1 year ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
````