Skip to content

Commit f988512

Browse files
authored
Replace deprecated Rust crate libipld with cbor4ii (#80)
1 parent 4951fac commit f988512

3 files changed

Lines changed: 207 additions & 162 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ crate-type = ["rlib", "cdylib"]
1616
pyo3 = { version = "0.27.1", features = ["generate-import-lib", "anyhow"] }
1717
python3-dll-a = "0.2.14"
1818
anyhow = "1.0.100"
19-
libipld = { version = "0.16.0", features = ["dag-cbor"] }
20-
multibase = "0.9.2"
21-
byteorder = "1.5.0"
22-
multihash = "0.18.1"
19+
cid = "0.11.1"
20+
cbor4ii = { version = "1.2.1" }
2321

2422
[workspace]
2523
members = [ "profiling" ]

pytests/test_dag_cbor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_dag_cbor_decode_invalid_utf8() -> None:
165165
libipld.decode_dag_cbor(bytes.fromhex('62c328'))
166166

167167

168-
assert 'Invalid UTF-8 string' in str(exc_info.value)
168+
assert 'utf-8' in str(exc_info.value)
169169

170170

171171
def test_dab_cbor_decode_map_int_key() -> None:

0 commit comments

Comments
 (0)