[package] name = "ipld-core" version = "0.4.1" authors = [ "Volker Mische " ] 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 = "." }