Skip to content

How to convert any rust project to be compatible with spin deploy? #2534

Answered by itowlson
codeitlikemiley asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for digging so deeply into the Spin and Wasm rabbit hole! There are a lot of overlapping threads here and I'm not quite sure how to address all of them, but I'll do my best!

Spin is a server-side Web assembly runtime. That is, an application (or component) to run in Spin must indeed be compiled to Wasm. You can't use it to deploy arbitrary containers, whether the application in those containers is Rust-based or not.

The file server is an example of a Spin WebAssembly component. It illustrates that you don't necessarily need to compile your own code to Wasm. For example, you can use the fileserver to serve a site generated using a SSG such as Zola (https://github.com/karthik2804/spi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by codeitlikemiley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants