Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-22 Thread Daniel Stenberg via curl-library
On Wed, 22 Mar 2023, Darshan Sen via curl-library wrote: I don't know if there are any other ways of bundling libcurl and its dependencies along with the binding other than the 2 options I mentioned. If there aren't, I was wondering which one of the two - fully static library / fully

Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-22 Thread Timothe Litt via curl-library
I'm not "official", but here's my take: If you're determined to ship a bundle, I'd go with a static link of the libraries with your app, producing a single executable. You're going to have to provide updates in any case, so one file is better than several.  After you get past libc

Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-22 Thread Darshan Sen via curl-library
To be clear, I work at Postman and I was experimenting on adding support for sending HTTP3 requests to the Postman app. For a network debugging tool like Postman, I guess it makes sense to give our users full capability of sending any kind of network requests they would prefer, including fully

Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-21 Thread Timothe Litt via curl-library
HTTP/3 is experimental.  Do you want your non-technical users to rely on an experimental implementation? Do you have http/3 -only servers that your addon must communicate with?  (That would be unusual.) Unless that's the case, in the situation you describe, I'd wait for http/3 to be in the

Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-21 Thread Darshan Sen via curl-library
The primary reason why I thought that the deps should be bundled with the addon is that the application that would be using the addon needs libcurl with HTTP3 support through OpenSSL. The only option I found is to use the first one from https://curl.se/docs/http3.html - the ngtcp2 version which

Re: Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-21 Thread Timothe Litt via curl-library
On 21-Mar-23 04:34, Darshan Sen via curl-library wrote: Hi! I'd like to incorporate a custom build of libcurl (with HTTP3 support) into a Node.js C++ addon that is going to be shipped to some systems that don't have curl or its dependencies installed.

Recommended way of using a custom build of libcurl in a Node.js addon

2023-03-21 Thread Darshan Sen via curl-library
Hi! I'd like to incorporate a custom build of libcurl (with HTTP3 support) into a Node.js C++ addon that is going to be shipped to some systems that don't have curl or its dependencies installed. >From what I can tell, the possible ways in which this can be