Skip to content

Commit

Permalink
Use integer-max-i64-feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
sugyan committed Sep 3, 2024
1 parent 79a0aaf commit 15a9aa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" }
14 changes: 1 addition & 13 deletions atrium-api/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
//! <https://atproto.com/specs/data-model>

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;
Expand All @@ -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<u8>;
type Link = Cid;
}

type Ipld = IpldGeneric<PrimitivesI64>;

/// Trait for a collection of records that can be stored in a repository.
///
/// The records all have the same Lexicon schema.
Expand Down

0 comments on commit 15a9aa7

Please sign in to comment.