Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing build instructions & build suggestions #37

Open
yannh opened this issue Apr 10, 2021 · 2 comments
Open

Missing build instructions & build suggestions #37

yannh opened this issue Apr 10, 2021 · 2 comments

Comments

@yannh
Copy link

yannh commented Apr 10, 2021

Hello! I am starting to play with this, and I think it would save newcomers some time to provide some build instructions in the Readme.

The github workflow uses Cargo to build the project, while the official instructions here https://developer.fastly.com/learning/compute#compile-the-project-to-a-wasm-binary recommend to use fastly compute build (which I assume to be a wrapper).

I made a small Dockerfile / Makefile here https://github.com/fastly/compute-starter-kit-rust-default/compare/main...yannh:dockerfile?expand=1 for my own playground - to decouple the Rust version used to build this project from what might be installed on my system. If not too opinionated to be merged, I would be happy to iterate on it and add instructions.

Side note: with a Docker image, it would be pretty trivial to release a Github action to build Fastly Compute projects.
Thanks!

@Integralist
Copy link
Contributor

Hi @yannh

re: "release a Github action to build Fastly Compute projects."

This might be of interest to you:
https://github.com/fastly/compute-actions

@Integralist
Copy link
Contributor

Integralist commented Apr 10, 2021

re: "I think it would save newcomers some time to provide some build instructions in the Readme"

Thanks for this feedback, I'll be sure to pass it onto the relevant team(s).

The starter kits are typically expected to be consumed using the Fastly CLI tool. For example, when running fastly compute init you'll be presented with the option to select a supported programming language and, once that selection is made, you'll have the option to pull down one of the supported starter kits (this being one of them).

Those instructions can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants