28 lines
534 B
Markdown
28 lines
534 B
Markdown
|
# hello
|
||
|
|
||
|
I wanted to try out neon (rust bindings for node.js),
|
||
|
so I started reading [the neon guide](https://neon-bindings.com/docs/intro)
|
||
|
and spun this up as my playground.
|
||
|
|
||
|
There's probably not too much interesting here,
|
||
|
but if you look in `native/src/lib.rs` you'll see
|
||
|
the examples I've been trying out.
|
||
|
|
||
|
```bash
|
||
|
npm install -g neon
|
||
|
```
|
||
|
|
||
|
```bash
|
||
|
git clone https://git.coolaj86.com/coolaj86/hello.neon.js.git
|
||
|
pushd hello.neon.js/
|
||
|
neon build --release
|
||
|
node
|
||
|
```
|
||
|
|
||
|
```js
|
||
|
var hello = require('.');
|
||
|
console.log(hello);
|
||
|
|
||
|
hello.any();
|
||
|
```
|