{"id":16769277,"url":"https://github.com/afro-coder/spin-rust-demo","last_synced_at":"2025-03-16T14:11:05.768Z","repository":{"id":172211991,"uuid":"566181840","full_name":"afro-coder/spin-rust-demo","owner":"afro-coder","description":"This code demo's HTTP requests and responses in rust using Spin from Fermyon. It uses the experimental wasm http library.","archived":false,"fork":false,"pushed_at":"2022-11-15T06:22:23.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T01:30:27.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/afro-coder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-15T06:04:27.000Z","updated_at":"2023-06-02T05:44:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"e59e07be-1d9f-4dbd-b50c-92b9387edaae","html_url":"https://github.com/afro-coder/spin-rust-demo","commit_stats":null,"previous_names":["afro-coder/spin-rust-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afro-coder%2Fspin-rust-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afro-coder%2Fspin-rust-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afro-coder%2Fspin-rust-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afro-coder%2Fspin-rust-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afro-coder","download_url":"https://codeload.github.com/afro-coder/spin-rust-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878483,"owners_count":20362433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T06:13:46.199Z","updated_at":"2025-03-16T14:11:05.748Z","avatar_url":"https://github.com/afro-coder.png","language":"Rust","readme":"## WASM demo in Rust \n\nThis project uses Fermyon's [spin](https://github.com/fermyon/spin)\n\nSteps to get started\n- Install the Spin binary(Instructions in the Link above), [cargo and rustup](https://doc.rust-lang.org/cargo/getting-started/installation.html)\n- Install dependencies\n```bash\napt-get install -y curl git libssl-dev pkg-config\n```\n- Then add wasm as a target\n```bash\nrustup target add wasm32-wasi\n```\n- Run `spin build`\n- Run `spin up --follow-all` this will show all stdout and stderr\n\n*Note*: There is a Dockerfile but it's currently not optimized and creates a 5GB docker image.\n\nThe `spin.toml` is where the Routing is decided for the URL's\n\nSpin has a nice example list\n\n- https://www.fermyon.com/blog/introducing-spin\n- https://www.fermyon.com/blog/spin-rest-apis\n- https://www.fermyon.com/blog/spin-webhooks\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafro-coder%2Fspin-rust-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafro-coder%2Fspin-rust-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafro-coder%2Fspin-rust-demo/lists"}