Beta release DUB 1.0.0-beta.1

Rory McGuire via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue Jun 7 08:52:45 PDT 2016


On 07 Jun 2016 11:56, "Sönke Ludwig" <digitalmars-d-announce at puremagic.com>
wrote:
>
> DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support
for single-file packages, which can be used to write shebang-style scripts
on Posix systems:
>
>     #!/usr/bin/env dub
>     /++ dub.sdl:
>         name "colortest"
>         dependency "color" version="~>0.0.3"
>     +/
>
>     void main()
>     {
>         import std.stdio : writefln;
>         import std.experimental.color.conv;
>         import std.experimental.color.hsx;
>         import std.experimental.color.rgb;
>
>         auto yellow = RGB!("rgb", float)(1.0, 1.0, 0.0);
>         writefln("Yellow in HSV: %s", yellow.convertColor!(HSV!()));
>     }
>
> With "chmod +x" it can then simply be run as ./colortest.d.
>
> Apart from that, the release contains some bug fixes, most notably it
doesn't query the registry for each build any more.
>
> Full change log:
> https://github.com/D-Programming-Language/dub/blob/master/CHANGELOG.md
>
> Download (Latest Preview):
> http://code.dlang.org/download

Awesome! Now we can do quick vibe test snippets without  having to make a
dub project.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-announce/attachments/20160607/5ba6623e/attachment-0001.html>


More information about the Digitalmars-d-announce mailing list