feat: support node10

This commit is contained in:
LongYinan 2018-04-29 22:16:28 +08:00
parent c05ab719b3
commit 894c7c962a
No known key found for this signature in database
GPG key ID: D05299933DBE44D3
5 changed files with 6 additions and 8 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@ target/
.DS_Store
Cargo.lock
node_modules
src/sys/bindings.rs

View file

@ -29,7 +29,7 @@ const nodeIncludePath = path.join(
const moduleName = path.basename(process.cwd()).replace('-', '_')
process.env.NODE_INCLUDE_PATH = nodeIncludePath
process.env.NODE_MAJOR_VERSION = nodeMajorVersion
process.env.NODE_MAJOR_VERSION = nodeMajorVersion > 8 ? 'stable' : 8
const platform = os.platform()
let libExt, platformArgs

File diff suppressed because one or more lines are too long

View file

@ -11,7 +11,7 @@ mod node8;
#[cfg(node8)]
pub use self::node8::Status;
#[cfg(node9)]
mod node9;
#[cfg(node9)]
pub use self::node9::Status;
#[cfg(nodestable)]
mod stable;
#[cfg(nodestable)]
pub use self::stable::Status;