-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
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
Add a module for build-rs scripts? #955
Comments
I noticed that |
@JohnScience Can you describe your use case a bit more? The Node-API version set with a config flag in a Neon addon is a minimum version and does not need to match exactly. For addons that support multiple versions of Node, it's generally best practice to pick the lowest version that supports all of the required Neon features. There's not much of a reason to go below Node-API 6 since it's supported by every LTS version of Node. If you only need to support a single Node version that you control, you can use the Adding a build script adds considerable complexity. Neon used to have one, but, put we put in a lot of work to remove it since it was the source of a lot bugs. Thanks! |
I've been contracted for creation of a frontend for server hosting a supervised learning algorithm that identifies areas of lungs affected by COVID. As a Rust dev, I just wrote as WASM module for browser and everything worked fine. However, somewhere in the process it was identified that it would be very convenient to be able to select specific paths, not just file contents, and keep track of them. However, file picker API on the web offers only "fake paths" for security reasons. We decided to use Electron, which offered proper access to the filesystem and many other niceties, because it seemed to be quite mature and easy (and it was). Electron runs on Node.js and I'm considering the use of However, right now I seem to face some issues with permissions and if I don't receive help in the official Discord server of Electron, for example in my thread of the help channel, or come up with the idea how to debug the build process, I might end up ditching the idea of using Rust for the functionality and use JavaScript instead. Regarding the build script module, I meant a module with functionality for build scripts, so that the library user can decided whether they are fine with the hardcoded |
The issue is screenshot seems like it's related to the electron packaging and not the addon itself. Might this be a VM with a shared directory or something else that that would cause the symlink to fail? The paths seem like it might be trying to create a symlink across mount points. I can personally attest that Neon works great in Electron. I work on a large commercial app that has used Neon+Electron for years. |
Hello, hardcoding
napi
version inCargo.toml
is not always convenient for local development. Instead, I would like to see a module for build scripts that would determinenapi
version fromnode -v
call and node api version matrix.What do you think about it?
The text was updated successfully, but these errors were encountered: