├── .cargo └── config.toml ├── .github └── workflows │ ├── build.yml │ └── release.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── Makefile ├── README.md ├── examples ├── javascript │ ├── .gitignore │ ├── README.md │ ├── app.mjs │ ├── build.mjs │ ├── package-lock.json │ ├── package.json │ └── spin.toml ├── python │ ├── .gitignore │ ├── README.md │ ├── app.py │ └── spin.toml ├── rust-standalone │ ├── Cargo.lock │ ├── Cargo.toml │ ├── README.md │ ├── spin.toml │ └── src │ │ └── lib.rs ├── rust │ ├── Cargo.lock │ ├── Cargo.toml │ ├── README.md │ ├── spin.toml │ └── src │ │ ├── bindings.rs │ │ └── lib.rs ├── static │ ├── bar.txt │ └── foo.txt └── wit │ ├── command-extended.wit │ ├── delegate.wit │ ├── deps │ ├── cli │ │ ├── command.wit │ │ ├── environment.wit │ │ ├── exit.wit │ │ ├── imports.wit │ │ ├── run.wit │ │ ├── stdio.wit │ │ └── terminal.wit │ ├── clocks │ │ ├── monotonic-clock.wit │ │ ├── wall-clock.wit │ │ └── world.wit │ ├── filesystem │ │ ├── preopens.wit │ │ ├── types.wit │ │ └── world.wit │ ├── http │ │ ├── handler.wit │ │ ├── proxy.wit │ │ └── types.wit │ ├── io │ │ ├── error.wit │ │ ├── poll.wit │ │ ├── streams.wit │ │ └── world.wit │ ├── random │ │ ├── insecure-seed.wit │ │ ├── insecure.wit │ │ ├── random.wit │ │ └── world.wit │ └── sockets │ │ ├── instance-network.wit │ │ ├── ip-name-lookup.wit │ │ ├── network.wit │ │ ├── tcp-create-socket.wit │ │ ├── tcp.wit │ │ ├── udp-create-socket.wit │ │ ├── udp.wit │ │ └── world.wit │ ├── main.wit │ ├── proxy.wit │ └── test.wit ├── hello-test.txt ├── index.html ├── spin-favicon.ico ├── spin-favicon.png ├── spin.toml ├── src └── lib.rs └── tests ├── .vscode └── settings.json ├── Cargo.toml └── src └── lib.rs /.cargo/config.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/.cargo/config.toml -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .spin/ 3 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/README.md -------------------------------------------------------------------------------- /examples/javascript/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/.gitignore -------------------------------------------------------------------------------- /examples/javascript/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/README.md -------------------------------------------------------------------------------- /examples/javascript/app.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/app.mjs -------------------------------------------------------------------------------- /examples/javascript/build.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/build.mjs -------------------------------------------------------------------------------- /examples/javascript/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/package-lock.json -------------------------------------------------------------------------------- /examples/javascript/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/package.json -------------------------------------------------------------------------------- /examples/javascript/spin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/javascript/spin.toml -------------------------------------------------------------------------------- /examples/python/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/python/.gitignore -------------------------------------------------------------------------------- /examples/python/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/python/README.md -------------------------------------------------------------------------------- /examples/python/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/python/app.py -------------------------------------------------------------------------------- /examples/python/spin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/python/spin.toml -------------------------------------------------------------------------------- /examples/rust-standalone/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust-standalone/Cargo.lock -------------------------------------------------------------------------------- /examples/rust-standalone/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust-standalone/Cargo.toml -------------------------------------------------------------------------------- /examples/rust-standalone/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust-standalone/README.md -------------------------------------------------------------------------------- /examples/rust-standalone/spin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust-standalone/spin.toml -------------------------------------------------------------------------------- /examples/rust-standalone/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust-standalone/src/lib.rs -------------------------------------------------------------------------------- /examples/rust/Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/Cargo.lock -------------------------------------------------------------------------------- /examples/rust/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/Cargo.toml -------------------------------------------------------------------------------- /examples/rust/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/README.md -------------------------------------------------------------------------------- /examples/rust/spin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/spin.toml -------------------------------------------------------------------------------- /examples/rust/src/bindings.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/src/bindings.rs -------------------------------------------------------------------------------- /examples/rust/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/rust/src/lib.rs -------------------------------------------------------------------------------- /examples/static/bar.txt: -------------------------------------------------------------------------------- 1 | bar 2 | -------------------------------------------------------------------------------- /examples/static/foo.txt: -------------------------------------------------------------------------------- 1 | foo 2 | -------------------------------------------------------------------------------- /examples/wit/command-extended.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/command-extended.wit -------------------------------------------------------------------------------- /examples/wit/delegate.wit: -------------------------------------------------------------------------------- 1 | world delegate { 2 | import wasi:http/incoming-handler@0.2.0; 3 | } 4 | -------------------------------------------------------------------------------- /examples/wit/deps/cli/command.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/command.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/environment.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/environment.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/exit.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/exit.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/imports.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/imports.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/run.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/run.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/stdio.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/stdio.wit -------------------------------------------------------------------------------- /examples/wit/deps/cli/terminal.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/cli/terminal.wit -------------------------------------------------------------------------------- /examples/wit/deps/clocks/monotonic-clock.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/clocks/monotonic-clock.wit -------------------------------------------------------------------------------- /examples/wit/deps/clocks/wall-clock.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/clocks/wall-clock.wit -------------------------------------------------------------------------------- /examples/wit/deps/clocks/world.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/clocks/world.wit -------------------------------------------------------------------------------- /examples/wit/deps/filesystem/preopens.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/filesystem/preopens.wit -------------------------------------------------------------------------------- /examples/wit/deps/filesystem/types.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/filesystem/types.wit -------------------------------------------------------------------------------- /examples/wit/deps/filesystem/world.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/filesystem/world.wit -------------------------------------------------------------------------------- /examples/wit/deps/http/handler.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/http/handler.wit -------------------------------------------------------------------------------- /examples/wit/deps/http/proxy.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/http/proxy.wit -------------------------------------------------------------------------------- /examples/wit/deps/http/types.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/http/types.wit -------------------------------------------------------------------------------- /examples/wit/deps/io/error.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/io/error.wit -------------------------------------------------------------------------------- /examples/wit/deps/io/poll.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/io/poll.wit -------------------------------------------------------------------------------- /examples/wit/deps/io/streams.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/io/streams.wit -------------------------------------------------------------------------------- /examples/wit/deps/io/world.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/io/world.wit -------------------------------------------------------------------------------- /examples/wit/deps/random/insecure-seed.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/random/insecure-seed.wit -------------------------------------------------------------------------------- /examples/wit/deps/random/insecure.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/random/insecure.wit -------------------------------------------------------------------------------- /examples/wit/deps/random/random.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/random/random.wit -------------------------------------------------------------------------------- /examples/wit/deps/random/world.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/random/world.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/instance-network.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/instance-network.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/ip-name-lookup.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/ip-name-lookup.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/network.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/network.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/tcp-create-socket.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/tcp-create-socket.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/tcp.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/tcp.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/udp-create-socket.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/udp-create-socket.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/udp.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/udp.wit -------------------------------------------------------------------------------- /examples/wit/deps/sockets/world.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/deps/sockets/world.wit -------------------------------------------------------------------------------- /examples/wit/main.wit: -------------------------------------------------------------------------------- 1 | package wasmtime:wasi; -------------------------------------------------------------------------------- /examples/wit/proxy.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/proxy.wit -------------------------------------------------------------------------------- /examples/wit/test.wit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/examples/wit/test.wit -------------------------------------------------------------------------------- /hello-test.txt: -------------------------------------------------------------------------------- 1 | hello, world! 2 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/index.html -------------------------------------------------------------------------------- /spin-favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/spin-favicon.ico -------------------------------------------------------------------------------- /spin-favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/spin-favicon.png -------------------------------------------------------------------------------- /spin.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/spin.toml -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/src/lib.rs -------------------------------------------------------------------------------- /tests/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/tests/.vscode/settings.json -------------------------------------------------------------------------------- /tests/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/tests/Cargo.toml -------------------------------------------------------------------------------- /tests/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/spinframework/spin-fileserver/HEAD/tests/src/lib.rs --------------------------------------------------------------------------------