Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arctic-hen7/rust-lambda-example
An example of setting up serverless functions for Netlify in Rust.
https://github.com/arctic-hen7/rust-lambda-example
Last synced: 24 days ago
JSON representation
An example of setting up serverless functions for Netlify in Rust.
- Host: GitHub
- URL: https://github.com/arctic-hen7/rust-lambda-example
- Owner: arctic-hen7
- License: mit
- Created: 2021-06-23T04:54:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T02:45:17.000Z (over 1 year ago)
- Last Synced: 2023-04-27T05:09:08.725Z (over 1 year ago)
- Language: Dockerfile
- Size: 2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of Serverless Functions on Netlify in Rust
This repository is an example setup of serverless functions in Rust, using Netlify as the deployment platform.. This is a barebones playground for the serverless systems that will be integrated into [Diana](https://github.com/arctic-hen7/diana).
Unfortunately, Netlify Dev (which allows locally developing functions and the like for Netlify on your machine) does not yet support Rust serverless functions, meaning to see the results of our work, we have to deploy live to the cloud. This repository provides an example of how to do that with a basic hello world function.
Heavy inspiration for this was taken from .
## To run locally
1. Fork this repository (you'll need a functioning remote) and then clone it to your local machine.
2. Run `bonnie sh` (assuming you have [Bonnie](https://github.com/arctic-hen7/bonnie) installed, if not just copy and paste the commands from `bonnie.toml`) to shell into a Docker container. This container has the same networking settings as your local machine, and all ports will be forwarded.
3. Run `netlify login` to log into your Netlify account, and then use `netlify init` to link with a repository (or you can deploy manually as per their guide).
4. Push to your remote and wait for automatic deployment!## License
See [`LICENSE`](./LICENSE).