4 个版本
0.1.3 | 2024年4月25日 |
---|---|
0.1.2 | 2023年1月20日 |
0.1.1 | 2023年1月11日 |
0.1.0 | 2022年12月18日 |
#120 in WebAssembly
每月219次下载
25KB
238 代码行
supabase-js-rs
通过 WebAssembly 为 Supabase JavaScript 库提供 Rust 绑定。
用法
将 supabase-js-rs
添加到 Cargo.toml
supabase-js-rs = { version = "0.1.2" }
wasm-bindgen = "0.2.83"
或使用 git 依赖项
supabase-js-rs = { git = "https://github.com/wa1aric/supabase-js-rs", rev = "ada414750f6e5baa2f4729304c53aed3b2d9515e" }
wasm-bindgen = "0.2.83"
安装 @supabase/supabase-js
作为包,通过在 crate 根目录的 index.html 中添加 CDN 链接
<script src="https://cdn.jsdelivr.net.cn/npm/@supabase/supabase-js@2"></script>
构建和运行
trunk serve
示例
- Sycamore 认证
- Sycamore 留言板
- Sycamore 实时
- Perseus
- Yew 认证
- Seed
- Leptos OAuth
- MoonZoon
我已经完成的工作
- 认证
- 创建新用户
- 用户登录
- 通过 OTP 登录用户
- 通过 OAuth 登录用户
- 用户登出
- 通过 OTP 验证和登录
- 检索会话
- 检索新会话
- 检索用户
- 更新用户
- 设置会话数据
- 监听认证事件
- 发送密码重置请求
- 注册因子
- 创建挑战
- 验证挑战
- 创建和验证挑战
- 注销因子
- 获取认证器保证级别
- 数据库
- 获取数据
- 插入数据
- 更新数据
- 更新或插入数据
- 删除数据
- 调用 Postgres 函数
- 使用过滤器
- 使用修饰符
- 函数
- 实时
- 存储
依赖项
~1–2.9MB
~53K SLoC