diff --git a/Cargo.lock b/Cargo.lock index 450533c3..0f3dc8eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1114,7 +1114,7 @@ dependencies = [ [[package]] name = "ipld-core" version = "0.4.1" -source = "git+https://github.com/ipld/rust-ipld-core?branch=primitives-as-trait#4ef5d7344881d0c6c0824f40922bd3f5163320b6" +source = "git+https://github.com/ipld/rust-ipld-core?branch=integer-max-i64-feature#90adbf73b6472de56d13a7388c51da00844e8c1f" dependencies = [ "cid", "serde", diff --git a/Cargo.toml b/Cargo.toml index 6f57c3a4..bb5f0be2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ bsky-sdk = { version = "0.1.6", path = "bsky-sdk" } async-trait = "0.1.80" # DAG-CBOR codec -ipld-core = { version = "0.4.1", default-features = false, features = ["std"] } +ipld-core = { version = "0.4.1", default-features = false, features = ["integer-max-i64"] } serde_ipld_dagcbor = { version = "0.6.0", default-features = false, features = ["std"] } # Parsing and validation @@ -79,4 +79,4 @@ bumpalo = "~3.14.0" [patch.crates-io] -ipld-core = { git = "https://github.com/ipld/rust-ipld-core", branch = "primitives-as-trait" } +ipld-core = { git = "https://github.com/ipld/rust-ipld-core", branch = "integer-max-i64-feature" } diff --git a/atrium-api/src/types.rs b/atrium-api/src/types.rs index 42a1d89f..affcdccc 100644 --- a/atrium-api/src/types.rs +++ b/atrium-api/src/types.rs @@ -2,8 +2,7 @@ //! use crate::error::Error; -use ipld_core::cid::Cid; -use ipld_core::ipld::{IpldGeneric, Primitives}; +use ipld_core::ipld::Ipld; use ipld_core::serde::to_ipld; use std::collections::BTreeMap; use std::fmt; @@ -21,17 +20,6 @@ use string::RecordKey; #[derive(Clone)] pub struct PrimitivesI64; -impl Primitives for PrimitivesI64 { - type Bool = bool; - type Integer = i64; - type Float = f64; - type String = String; - type Bytes = Vec; - type Link = Cid; -} - -type Ipld = IpldGeneric; - /// Trait for a collection of records that can be stored in a repository. /// /// The records all have the same Lexicon schema.