Skip to content

dasimmet/zig-spin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦎 πŸͺ€ zig spin

CI CD DC LC

Zig SDK for the Spin serverless application framework created by the Fermyon team.

πŸš€ Usage

  1. Add spin as a dependency in your build.zig.zon.

    build.zig.zon example
    .{
        .name = "<name_of_your_package>",
        .version = "<version_of_your_package>",
        .dependencies = .{
            .spin = .{
                .url = "https://github.com/tensorush/zig-spin/archive/<git_tag_or_commit_hash>.tar.gz",
                .hash = "<package_hash>",
            },
        },
    }

    Set <package_hash> to 12200000000000000000000000000000000000000000000000000000000000000000, and Zig will provide the correct found value in an error message.

  2. Add spin as a module in your build.zig.

    build.zig example
    const spin = b.dependency("spin", .{});
    exe.addModule("spin", spin.module("spin"));
    exe.linkLibrary(spin.artifact("spin"));

πŸ”‹ Progress

Legend: 🟒 - tested, 🟑 - untested, πŸ”΄ - unimplemented.

Component Status Example
HTTP (outbound) 🟒 Click
HTTP (inbound) 🟒 Click
Redis (outbound) πŸ”΄ Click
Redis (inbound) πŸ”΄ Click
PostgreSQL πŸ”΄ Click
MySQL πŸ”΄ Click
SQLite 🟑 Click
Config 🟒 Click
KVS πŸ”΄ Click
LLM πŸ”΄ Click

⬇️ Dependencies

About

🦎 πŸͺ€ Zig SDK for Spin, a serverless application framework, created by the @fermyon team.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •