You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Rust project that wraps functionalities into a Node.js addon using napi-rs for Node.js integration. The project was created and packaged into a Node-addon using napi-cli. Due to restrictions at my company where Git Actions are unsupported, I am using GitLab Pipeline for builds, utilizing a lower version CentOS image(x86_64-unknown-linux-gnu).
The Rust application, when statically linked and running normally under Rust 1.75 and Node.js 18 environments, encounters an issue after being built as a Node-addon with napi-cli. Specifically, the addon uses reqwest for HTTP requests, which fail due to communication errors related to outdated TLS(tsl1.2) versions, need tsl1.3 (all other application logic runs correctly).
I attempted to address this by modifying the openssl dependency with openssl = { version = "0.10.52", features = ["vendored"] }, but this approach failed during build without informative error messages.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a Rust project that wraps functionalities into a Node.js addon using napi-rs for Node.js integration. The project was created and packaged into a Node-addon using napi-cli. Due to restrictions at my company where Git Actions are unsupported, I am using GitLab Pipeline for builds, utilizing a lower version CentOS image(x86_64-unknown-linux-gnu).
The Rust application, when statically linked and running normally under Rust 1.75 and Node.js 18 environments, encounters an issue after being built as a Node-addon with napi-cli. Specifically, the addon uses reqwest for HTTP requests, which fail due to communication errors related to outdated TLS(tsl1.2) versions, need tsl1.3 (all other application logic runs correctly).
I attempted to address this by modifying the openssl dependency with openssl = { version = "0.10.52", features = ["vendored"] }, but this approach failed during build without informative error messages.
Could you please advise on how to proceed?
Beta Was this translation helpful? Give feedback.
All reactions