Running a website using a 1.3MB self-contained executable

Andrea Fontana nospam at example.com
Mon Jan 20 11:07:32 UTC 2025


On Monday, 20 January 2025 at 08:55:43 UTC, Sebastiaan Koppe 
wrote:
> On Sunday, 19 January 2025 at 21:17:29 UTC, Andrea Fontana 
> wrote:
>> I’ve published an example showcasing how to use serverino to 
>> serve a web server that generates QR codes, without any 
>> external dependencies (not even glibc) and without reading or 
>> writing any files to disk.
>
> Awesome. I tried this many times but due to (transitive) 
> dependencies on glibc always had to give up (e.g. gethostname).
>
> Switching to musl often failed as well because it isn't as 
> supported as glibc in druntime.

In this case musl worked! You can see the workflow here:

https://github.com/trikko/serverino-demo/blob/main/.github/workflows/main.yml

Andrea


More information about the Digitalmars-d mailing list