2 个版本
0.1.1 | 2022年11月14日 |
---|---|
0.1.0 | 2022年11月12日 |
#1971 在 数据库接口
93 每月下载量
用于 app-db-schema
20KB
409 行代码
-
请检查 impl/src/lib.rs
-
用法
#[derive(Debug, Clone)]
pub struct Relation {
pub id: Thing,
pub from: Thing,
pub with: Thing,
}
impl TryFrom<surrealdb_obj_derive::SurrealValue> for Relation {}
参考 crate 架构
或
#[derive(SurrealDbObject, Debug, Clone)]
pub struct Mobile {
pub id: u64,
}
- 发布
cargo install cargo-release
cargo release publish --workspace --registry crates-io --execute
cargo release push --execute
# cargo publish --no-verify
依赖关系
~84MB
~1.5M SLoC