Hey everyone! I remember there being some requests...
# spicedb
l
Hey everyone! I remember there being some requests for a SpiceDB client in rust. After using spiceDB in production at my company and having to write some internal tooling for it I started working on an open source client trying to bring over some of the lessons learned from working with SpiceDB in rust. Here's a sneak peek of the API:
Copy code
rust
let client = SpiceDBClient::new("http://localhost:50051", "randomkey")
    .await
    .unwrap();
let schema = include_str!("schema.zed");
client.schema_client().write_schema(schema).await.unwrap();
let mut request = client.permission_client().create_relationships();
request.add_relationship::<User, Document>(
    RelationshipOperation::Create,
    "jeff".to_owned(),
    None,
    "homework".to_owned(),
    DocumentRelation::Writer,
);
https://github.com/Lur1an/spicedb-rust/
3 Views