- Install
rust
by executing this:$ curl -sSf https://static.rust-lang.org/rustup.sh | sh
- Install node (v4.2.*), e.g.
$ nvm install 4
- Install
neon
:$ npm install -g neon-cli
- Patch the
templates/binding.gyp.hbs
of theneon-cli
using a patch from here: https://github.com/dherman/neon-cli/pull/6/commits - Take the advice to edit the
../<(static_lib)
into<(PRODUCT_DIR)/../../<(static_lib)
- Create a new neon project:
$ neon new hello
$ cd hello
- Edit the
Cargo.toml
deps to fetch the latest neon from git:
[dependencies]
neon = { git = 'https://github.com/dherman/neon.git' }
$ npm install
$ node -e 'require("./")'