The end of curl (in phobos)
Lionello Lunesu via Digitalmars-d
digitalmars-d at puremagic.com
Sun May 8 08:36:53 PDT 2016
On 6/5/2016 20:17, qznc wrote:
> On Friday, 6 May 2016 at 09:21:43 UTC, Andrei Alexandrescu wrote:
>> On 5/6/16 10:32 AM, Robert burner Schadek wrote:
>>> As discussed yesterday at DConf, curl in phobos must go.
>>>
>>> The plan is as follows.
>>>
>>> 1. undocument everything curl related in may 2016
>>> 2. deprecate everything curl related in may 2017
>>> 3. delete everything curl related in may 2018
>>> 3.1 move curl stuff to undead
>>>
>>> PR: https://github.com/dlang/phobos/pull/4283
>>
>> 0. Write curl replacement
>
> Could we simply move it into a dub package? Or does that clash symbols
> or anything somehow?
Just tried this, works fine! Try it yourself:
$ sed -i '' 's/curl //' phobos/posix.mak
$ make -C phobos -f posix.mak clean
$ make -C phobos -f posix.mak
$ dub init undead-curl
$ echo 'targetType "sourceLibrary"' >> undead-curl/dub.sdl
$ mkdir -p undead-curl/source/etc/c undead-curl/source/std/net/
$ mv phobos/etc/c/curl.d undead-curl/source/etc/c/
$ mv phobos/std/net/curl.d undead-curl/source/std/net/
$ dub add-local undead-curl
Tested with an app I had made not long ago (guess what it does!)
$ cd sciamspider
$ echo 'dependency "undead-curl" version="~master"' >> dub.sdl
$ dub
Ran without any changes!
More information about the Digitalmars-d
mailing list