Socket
Socket
Sign inDemoInstall

neon-cli

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neon-cli

Build and load native Rust/Neon modules.


Version published
Weekly downloads
5.6K
increased by25.99%
Maintainers
1
Weekly downloads
 
Created
Source

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 bunch of 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.

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

FAQs

Package last updated on 23 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc