wasmtime: add CLI options for pre-opened TCP listen sockets (#3729)

This patch  implements CLI options to insert pre-opened sockets.

`--listenfd` : Inherit environment variables and file descriptors following
               the systemd listen fd specification (UNIX only).

`--tcplisten <SOCKET ADDRESS>`: Grant access to the given TCP listen socket.

Signed-off-by: Harald Hoyer <harald@profian.com>
This commit is contained in:
Harald Hoyer
2022-02-07 23:26:38 +01:00
committed by GitHub
parent 88b53b12aa
commit fa889b4fd2
3 changed files with 93 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ rayon = "1.5.0"
humantime = "2.0.0"
wasmparser = "0.82.0"
lazy_static = "1.4.0"
listenfd = "0.3.5"
[target.'cfg(unix)'.dependencies]
rustix = "0.33.0"