Skip to content

Commit

Permalink
feat: Update dependencies (#148)
Browse files Browse the repository at this point in the history
* Use ipld-core and serde-ipld-dagcbor with patched branches

* Fix build

* Update to new versions
  • Loading branch information
sugyan authored Mar 27, 2024
1 parent 30c6abf commit 9d04baa
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 125 deletions.
143 changes: 27 additions & 116 deletions Cargo.lock

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

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ atrium-xrpc-client = { version = "0.5.0", path = "atrium-xrpc-client" }
# Can be removed once MSRV is at least 1.75.0.
async-trait = "0.1.68"

# DAG-CBOR codec and CAR format
libipld-core = "0.16"
# DAG-CBOR codec
ipld-core = { version = "0.4.0", default-features = false, features = ["std"] }
serde_ipld_dagcbor = { version = "0.6.0", default-features = false, features = ["std"] }

# Parsing and validation
chrono = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions atrium-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ atrium-xrpc.workspace = true
async-trait.workspace = true
chrono = { workspace = true, features = ["serde"] }
http.workspace = true
ipld-core = { workspace = true, features = ["serde"] }
langtag = { workspace = true, features = ["serde"] }
libipld-core = { workspace = true, features = ["serde-codec"] }
regex.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_bytes.workspace = true
Expand All @@ -30,7 +30,7 @@ agent = ["tokio/sync"]
[dev-dependencies]
futures.workspace = true
serde_json.workspace = true
serde_ipld_dagcbor = { git = "https://github.com/sugyan/serde_ipld_dagcbor.git", rev = "345b240" }
serde_ipld_dagcbor.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] }
Expand Down
4 changes: 2 additions & 2 deletions atrium-api/src/types/cid_link.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use libipld_core::cid::{Cid, Error};
use libipld_core::ipld::Ipld;
use ipld_core::cid::{Cid, Error};
use ipld_core::ipld::Ipld;
use serde::{Deserialize, Serialize};

/// Representation of an IPLD Link.
Expand Down
2 changes: 1 addition & 1 deletion atrium-api/src/types/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
//! [string formats]: https://atproto.com/specs/lexicon#string-formats
use chrono::DurationRound;
use ipld_core::cid;
use langtag::{LanguageTag, LanguageTagBuf};
use libipld_core::cid;
use regex::Regex;
use serde::{de::Error, Deserialize, Deserializer, Serialize, Serializer};
use std::{cell::OnceCell, cmp, ops::Deref, str::FromStr};
Expand Down
4 changes: 2 additions & 2 deletions examples/firehose/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ anyhow = "1.0.80"
atrium-api = { version = "0.18.1", features = ["dag-cbor"] }
chrono = "0.4.34"
futures = "0.3.30"
ipld-core = { version = "0.2.0", features = ["serde"] }
ipld-core = { version = "0.4.0", default-features = false, features = ["std"] }
rs-car = "0.4.1"
serde_ipld_dagcbor = { git = "https://github.com/ipld/serde_ipld_dagcbor.git", rev = "297a6c26c8c89807e6602cab9803ef2c4ae8b459" }
serde_ipld_dagcbor = { version = "0.6.0", default-features = false, features = ["std"] }
tokio = { version = "1.36.0", features = ["full"] }
tokio-tungstenite = { version = "0.21.0", features = ["native-tls"] }
trait-variant = "0.1.1"

0 comments on commit 9d04baa

Please sign in to comment.