Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 815 Bytes

README.md

File metadata and controls

36 lines (27 loc) · 815 Bytes

OpenWorkers runtime

OpenWorkers is a runtime for running javascript code in a serverless environment. It is designed to be used with the OpenWorkers CLI.

This repository contains the runtime library.

Usage

Build all examples

cargo build --release --examples

Snapshot the runtime

cargo run --bin snapshot

Run the demo server

With a new runtime instance for each request

cargo run --example serve-new -- examples/serve.js

With the same runtime instance for each request

cargo run --example serve-same -- examples/serve.js

Execute a scheduled task

export RUST_LOG=openworkers_runtime=debug,serve=debug # Optional

cargo run --example scheduled -- examples/scheduled.js