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

 
 
 

Contributors