[package]
edition = "2024"
name = "hypercore"
version = "0.16.0"
authors = [
"Yoshua Wuyts <yoshuawuyts@gmail.com>",
"Timo Tiuraniemi <timo.tiuraniemi@iki.fi>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Secure, distributed, append-only log"
documentation = "https://docs.rs/hypercore"
readme = "README.md"
keywords = [
"dat",
"p2p",
"stream",
"feed",
"merkle",
]
categories = [
"asynchronous",
"concurrency",
"cryptography",
"data-structures",
"encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/datrs/hypercore"
[features]
async-std = ["random-access-disk/async-std"]
cache = ["moka"]
default = [
"tokio",
"sparse",
"replication",
"cache",
]
js_interop_tests = []
replication = ["dep:async-broadcast"]
shared-core = [
"replication",
"dep:async-lock",
]
sparse = ["random-access-disk/sparse"]
tokio = ["random-access-disk/tokio"]
[lib]
name = "hypercore"
path = "src/lib.rs"
[[example]]
name = "disk"
path = "examples/disk.rs"
[[example]]
name = "memory"
path = "examples/memory.rs"
[[example]]
name = "replication"
path = "examples/replication.rs"
[[test]]
name = "core"
path = "tests/core.rs"
[[test]]
name = "js_interop"
path = "tests/js_interop.rs"
[[test]]
name = "model"
path = "tests/model.rs"
[[bench]]
name = "disk"
path = "benches/disk.rs"
harness = false
[[bench]]
name = "memory"
path = "benches/memory.rs"
harness = false
[dependencies.async-broadcast]
version = "0.7.1"
optional = true
[dependencies.async-lock]
version = "3.4.0"
optional = true
[dependencies.blake2]
version = "0.10"
[dependencies.byteorder]
version = "1"
[dependencies.compact-encoding]
version = "2"
[dependencies.crc32fast]
version = "1"
[dependencies.ed25519-dalek]
version = "2"
features = ["rand_core"]
[dependencies.flat-tree]
version = "6"
[dependencies.futures]
version = "0.3"
[dependencies.getrandom]
version = "0.2"
features = ["js"]
[dependencies.hypercore_schema]
version = "0.2.0"
[dependencies.intmap]
version = "2"
[dependencies.merkle-tree-stream]
version = "0.12"
[dependencies.moka]
version = "0.12"
features = ["sync"]
optional = true
[dependencies.pretty-hash]
version = "0.4"
[dependencies.rand]
version = "0.8"
[dependencies.random-access-memory]
version = "3"
[dependencies.random-access-storage]
version = "5"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "1"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.anyhow]
version = "1.0.70"
[dev-dependencies.async-std]
version = "1.12.0"
features = ["attributes"]
[dev-dependencies.criterion]
version = "0.4"
features = [
"async_std",
"async_tokio",
]
[dev-dependencies.data-encoding]
version = "2.2.0"
[dev-dependencies.proptest]
version = "1.6.0"
[dev-dependencies.proptest-derive]
version = "0.5.1"
[dev-dependencies.remove_dir_all]
version = "0.7.0"
[dev-dependencies.sha2]
version = "0.10"
[dev-dependencies.tempfile]
version = "3.1.0"
[dev-dependencies.test-log]
version = "0.2.11"
features = ["trace"]
default-features = false
[dev-dependencies.tokio]
version = "1.27.0"
features = [
"macros",
"rt",
"rt-multi-thread",
]
default-features = false
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-subscriber]
version = "0.3.16"
features = [
"env-filter",
"fmt",
]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.random-access-disk]
version = "3"
default-features = false