Skip to content

Commit

Permalink
chore: Update to use latest rust-ceramic
Browse files Browse the repository at this point in the history
  • Loading branch information
dbcfd committed May 16, 2024
1 parent c04bde7 commit 907004c
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 75 deletions.
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ publish = false

[dependencies]
anyhow = "1"
ceramic-event = { git = "https://github.com/ceramicnetwork/rust-ceramic", branch = "feat/wasi" }
json-patch = { version = "1.2.0", features = ["diff"] }
ceramic-event = { git = "https://github.com/ceramicnetwork/rust-ceramic", branch = "main" }
json-patch = { version = "2.0.0", features = ["diff"] }
once_cell = "1.19.0"
rand = "0.8.5"
reqwest = { version = "0.11.14", features = ["json"], optional = true }
schemars = "0.8.12"
serde = { version = "1.0", features = ["derive"] }
Expand Down
10 changes: 10 additions & 0 deletions src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@ use ceramic_event::{
Base64String, Base64UrlString, Jws, MultiBase32String, MultiBase36String, StreamId,
StreamIdType,
};
use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use std::str::FromStr;

/// Separator used for model and MID
pub const SEP: &str = "model";

/// All models have this model StreamId, while all documents have the model stream id of the model
/// they use
pub static PARENT_STREAM_ID: Lazy<StreamId> =
Lazy::new(|| StreamId::from_str("kh4q0ozorrgaq2mezktnrmdwleo1d").unwrap());

/// Header for block data
#[derive(Debug, Serialize)]
Expand Down
Loading

0 comments on commit 907004c

Please sign in to comment.