Automatically create and build Neon modules.
Install neon-cli
as a global package:
npm install -g neon-cli
To create a new Neon project, use neon new
:
neon new my-project
This will ask you a few questions and then generate a project skeleton for you. Follow the instructions from there to build and run your project!
So far Neon is only working on OS X. You'll need XCode, Node v4 or later, and Rust 1.5 or later.
Creates a new Neon project skeleton.
neon new name
The name
is the project name and the name of the subdirectory of the current working directory that will be created.
Builds a Neon project. This command should be part of the postinstall
script in your package.json
, which is automatically set up by neon new
.
neon build [--rust toolchain] [--debug]
--rust
: Use this to specify that multirust should be used instead of the system default Rust installation. Thetoolchain
parameter is passed to multirust as the Rust toolchain to use for all build commands.--debug
: Use this to create a debug build.
The Neon community is just getting started and there's tons of fun to be had. Come play! :)
The Rust Bridge community Slack is open to all; use the Slackin app to receive an invitation.
There's also an IRC channel at #neon
on Mozilla IRC (irc.mozilla.org
).
- I've only gotten this working on OS X.
- Currently, downstream clients of a native Rust module have to have Rust installed on their system in order to build it.
- There's no way to fallback on precompiled or portable implementations.
I would love to work with people on fixing these limitations!
MIT