Skip to content

Rust bindings for writing safe and fast native Node.js modules.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

willmtemple/neon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neon-cli

Automatically create and build Neon modules.

Screencast

Getting started

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!

Requirements

So far Neon is only working on OS X. You'll need XCode, Node v4 or later, and Rust 1.5 or later.

Commands

neon new

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.

neon build

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. The toolchain parameter is passed to multirust as the Rust toolchain to use for all build commands.
  • --debug: Use this to create a debug build.

Get Involved

The Neon community is just getting started and there's tons of fun to be had. Come play! :)

The 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).

Known Limitations

  • 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!

License

MIT

About

Rust bindings for writing safe and fast native Node.js modules.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 59.1%
  • TypeScript 16.9%
  • C++ 15.3%
  • JavaScript 5.7%
  • Shell 2.2%
  • HTML 0.6%
  • Python 0.2%