Entry-point to serve-d
Replaces std.stdio stdout with stderr so writeln calls don't accidentally write to the RPC output.
Handles all command line arguments, possibly modifying global state variables when enabling serve-d specific protocol extensions are requested.
Handles all the request/notification dispatch, calls (de)serialization of given JSON parameters and return values and responds back to the RPC.
Performs periodic GC cleanup and invokes the fiber scheduler, pushing incoming RPC requests as tasks to the fiber scheduler.
See Source File
Entry-point to serve-d
Replaces std.stdio stdout with stderr so writeln calls don't accidentally write to the RPC output.
Handles all command line arguments, possibly modifying global state variables when enabling serve-d specific protocol extensions are requested.
Handles all the request/notification dispatch, calls (de)serialization of given JSON parameters and return values and responds back to the RPC.
Performs periodic GC cleanup and invokes the fiber scheduler, pushing incoming RPC requests as tasks to the fiber scheduler.