IO and system

  • IO: print to standard output and error, and read standard input.
  • File, Dir and Path: read and write files, list and create directories, and build paths.
  • Process: start other programs, talk to them and wait for them.
  • TCP, TLS and HTTP: DNS lookups, sockets, an HTTP client and an HTTP server.
  • Archive: extract named files from TAR and ZIP archives into a new private directory.
  • Logger: levels, named handlers, and text or JSON lines on stderr.
  • System, Time and Random: program arguments, exit codes, clocks and random numbers.
  • Option parser: read the command line into typed values, with defaults, choices, errors and a help text.
  • Native code: call C functions of a native library with an extern block.

Files, processes and the network return a Result and take timeouts in milliseconds.