We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use build options?
I checked this example. And I tried this in windows 10, rustc 1.49.0 and neon 0.7.0.
windows 10
rustc 1.49.0
neon 0.7.0
build.rs
extern crate neon_build; fn main() { neon_build::Setup::options() .output_dir("../dist") .setup(); }
then
> neon build --release neon info forcing rebuild for new build settings neon info running cargo Compiling semver-parser v0.7.0 Compiling cfg-if v1.0.0 Compiling smallvec v1.6.1 Compiling cslice v0.2.0 Compiling neon-sys v0.7.0 Compiling hello-project v0.1.0 (D:\Dev\hello-project\native) Compiling neon v0.7.0 error[E0433]: failed to resolve: could not find `Setup` in `neon_build` --> build.rs:4:17 | 4 | neon_build::Setup::options() | ^^^^^ could not find `Setup` in `neon_build` error: aborting due to previous error
Sorry, I can't use English well. And I don't know Rust well.
Thank you.
The text was updated successfully, but these errors were encountered:
These build options are only available with the napi backend. Please ensure you are using the napi backend.
napi
Sorry, something went wrong.
@kjvalencik How to use napi backend?
@ssssota It's feature flag based. There are some additional details in the "manual steps" section. #444
@kjvalencik Thank you so much!
No branches or pull requests
Can I use build options?
I checked this example.
And I tried this in
windows 10
,rustc 1.49.0
andneon 0.7.0
.build.rs
then
Sorry, I can't use English well.
And I don't know Rust well.
Thank you.
The text was updated successfully, but these errors were encountered: