Lua-cURL / Lua-cURLv3

Lua binding to libcurl
MIT License
279 stars 64 forks source link

Move Lua-cURLv2 compatibility layer into separate file #174

Closed cryi closed 2 years ago

cryi commented 3 years ago

Hi,

I wonder whether it is possible to move Load_cURLv2 and load it through pcall(require, ...) or some alternative way.

For my use case compatibility layer is not necessary and I would like to drop it out of my built pipeline. For that I need it to be separate file and making it loaded only if available. I am ready to make this change just want to make sure it would be accepted as PR.

Please let me know.

msva commented 2 years ago

As far as it wouldn't brake backward cmpatibility, chances for PR to be accepted are high (although, I can't guarantee the time: I'm very busy at work, and can't say anything about @moteus spare time)

cryi commented 2 years ago

OK I ll try look into that when I get some time.

moteus commented 2 years ago

I have no statistic about usage of this API. May be start maintain lcurl module, but need to figure out a new name for compatability. In fact C module is enouth in most cases