On Tue, Oct 22, 2019 at 10:25 AM Prokop Hapala via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com> wrote: > > ... > > Also where is RDMD in the equation? I really like the idea run > binary programs like: > > #!/usr/bin/env rdmd > import std.stdio; > void main(){ > writeln("Hello, world!"); > } > > But I cannot find any documentation how to use rdmd with any > libraries/dependencies and dub.json ? Not even statically linked, > not to say dynamic. >
You can't use rdmd with dub, but for simple scripts you can use dub directly: https://dub.pm/advanced_usage.html