-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
45 lines (41 loc) · 1.74 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[package]
name = "ipld-core"
version = "0.4.1"
authors = [
"Volker Mische <[email protected]>"
]
repository = "https://github.com/ipld/rust-ipld-core"
edition = "2021"
description = "IPLD core types"
license = "MIT OR Apache-2.0"
categories = ["data-structures", "encoding"]
[features]
default = ["codec", "std"]
# Makes the error implement `std::error::Error` and the `Codec` trait available.
std = ["cid/std", "serde?/std", "serde_bytes?/std"]
# Enables support for Serde serialization into/deserialization from the `Ipld` enum.
serde = ["dep:serde", "dep:serde_bytes", "cid/serde"]
# Enables support for property based testing.
arb = ["dep:quickcheck", "cid/arb"]
# Enables support for the Codec trait, needs at least Rust 1.75
codec = []
[dependencies]
cid = { version = "0.11.1", default-features = false, features = ["alloc"] }
quickcheck = { version = "1.0", optional = true }
serde = { version = "1.0.195", default-features = false, features = ["alloc"], optional = true }
serde_bytes = { version = "0.11.5", default-features = false, optional = true }
[dev-dependencies]
serde_derive = "1.0.197"
serde_ipld_dagcbor = "0.6.0"
serde_ipld_dagjson = "0.2.0"
serde_json = "1.0.79"
serde_test = "1.0.132"
# This is a hack in order to make the rustdoc tests and releases happy.
# We include README in the library docs, this way the are run as tests. Those examples create a
# circular dependency on `ipld-core` (as `serde_ipld_dagcbor` and `serde_ipld_dagjson` depend on
# `ipld-core`.
# Also without this change `cargo release` would complain, as the `Cargo.lock` needs modifications
# as the previously mentioned crates would need to depend on an already released and not the about
# to be released version of `ipld-core`.
[patch.crates-io]
ipld-core = { path = "." }