Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevelr/wasm-service
Base library for serverless WASM on Cloudflare Workers
https://github.com/stevelr/wasm-service
cloudflare-workers wasm wasm-service
Last synced: 2 months ago
JSON representation
Base library for serverless WASM on Cloudflare Workers
- Host: GitHub
- URL: https://github.com/stevelr/wasm-service
- Owner: stevelr
- License: apache-2.0
- Created: 2020-12-02T23:48:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-09T08:17:53.000Z (almost 4 years ago)
- Last Synced: 2024-10-25T21:58:57.745Z (2 months ago)
- Topics: cloudflare-workers, wasm, wasm-service
- Language: Rust
- Homepage:
- Size: 85.9 KB
- Stars: 16
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
Lightweight library for building Rust-WASM services on Cloudflare Workers.
The goal of this library is to make it easy to build fast and
lightweight HTTP-based services in WASM, hosted on Cloudflare Workers.
To keep things fast and lightweight, there is a strong preference for
significant new capabilities to added as compile-time features or separate
libraries.## Features
- Fully async
- Request & response bodies can be text, json, or binary
- Non-blocking structured logging via [`service-logging`](https://github.com/stevelr/service-logging)
- Deferred tasks that run after response is returned to client
- Static file handling## Add-ons
- CORS and OAuth via [`wasm-service-oauth`](https://github.com/stevelr/wasm-service-oauth)
## Getting started
To start a new project,
wrangler generate -t rust PROJECT \
https://github.com/stevelr/rustwasm-service-templatewhere PROJECT is your project name.
[rustwasm-service-template](https://github.com/stevelr/rustwasm-service-template/blob/master/README.md)
contains some relevant sample code, as well as
instructions for setting up of Cloudflare and (optionally) Coralogix logging
service.## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)## Updates
See [CHANGELOG](./CHANGELOG.md) for recent changes