·spacetimedb-rust
</>

spacetimedb-rust

douglance/spacetimedb

使用 Rust 開發 SpacetimeDB 服務器模塊。在編寫減速器、表或模塊邏輯時使用。

4安裝·0熱度·@douglance

安裝

$npx skills add https://github.com/douglance/spacetimedb --skill spacetimedb-rust

SKILL.md

SpacetimeDB modules are WebAssembly applications that run inside the database. They define tables to store data and reducers to modify data. Clients connect directly to the database and execute application logic inside it.

| #[derive(SpacetimeType)] on #[table] | Remove it — macro handles this | Conflicting derive macros | | ctx.db.player (field access) | ctx.db.player() (method) | "no field player on type" | | ctx.db.player().find(id) | ctx.db.player().id().find(&id) | Must access via index | | &mut ReducerContext | &ReducerContext | Wrong context type |

| Missing use spacetimedb::Table; | Add import | "no method named insert" | | #[table(name = "mytable")] | #[table(name = mytable)] | String literals not allowed | | Missing public on table | Add public flag | Clients can't subscribe | | #[spacetimedb::reducer] | #[reducer] after import | Wrong attribute path |

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/douglance/spacetimedb --skill spacetimedb-rust
分類
</>開發工具
認證
收錄時間
2026-02-02
更新時間
2026-02-18

快速解答

什麼是 spacetimedb-rust?

使用 Rust 開發 SpacetimeDB 服務器模塊。在編寫減速器、表或模塊邏輯時使用。 來源:douglance/spacetimedb。

如何安裝 spacetimedb-rust?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/douglance/spacetimedb --skill spacetimedb-rust 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/douglance/spacetimedb

詳情

分類
</>開發工具
來源
skills.sh
收錄時間
2026-02-02