mirror of
https://github.com/Cuprate/cuprate.git
synced 2024-11-16 15:58:17 +00:00
Boog900
fdd1689665
Some checks failed
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
* split the DB service abstraction * fix ci * misc changes * init tx-pool DBs * add some comments * move more types to `/types` * add some ops * add config & more ops functions & open function * add read & write svcs * add more docs * add write functions + docs * fix merge * fix test * fix ci * move `TxPoolWriteError` * add more docs * fix toml formatting * fix some docs * fix clippy * review fixes * update docs * fix merge * fix docs * fix tests * fix tests * add back lints * Update storage/txpool/README.md Co-authored-by: hinto-janai <hinto.janai@protonmail.com> --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
50 lines
2 KiB
TOML
50 lines
2 KiB
TOML
[package]
|
|
name = "cuprate-blockchain"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
description = "Cuprate's blockchain database"
|
|
license = "MIT"
|
|
authors = ["hinto-janai"]
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/storage/cuprate-blockchain"
|
|
keywords = ["cuprate", "blockchain", "database"]
|
|
|
|
[features]
|
|
default = ["heed", "service"]
|
|
# default = ["redb", "service"]
|
|
# default = ["redb-memory", "service"]
|
|
heed = ["cuprate-database/heed"]
|
|
redb = ["cuprate-database/redb"]
|
|
redb-memory = ["cuprate-database/redb-memory"]
|
|
service = ["dep:thread_local", "dep:rayon"]
|
|
|
|
[dependencies]
|
|
# FIXME:
|
|
# We only need the `thread` feature if `service` is enabled.
|
|
# Figure out how to enable features of an already pulled in dependency conditionally.
|
|
cuprate-database = { path = "../database" }
|
|
cuprate-database-service = { path = "../service" }
|
|
cuprate-helper = { path = "../../helper", features = ["fs", "thread", "map"] }
|
|
cuprate-types = { path = "../../types", features = ["blockchain"] }
|
|
|
|
bitflags = { workspace = true, features = ["std", "serde", "bytemuck"] }
|
|
bytemuck = { workspace = true, features = ["must_cast", "derive", "min_const_generics", "extern_crate_alloc"] }
|
|
curve25519-dalek = { workspace = true }
|
|
cuprate-pruning = { path = "../../pruning" }
|
|
monero-serai = { workspace = true, features = ["std"] }
|
|
serde = { workspace = true, optional = true }
|
|
|
|
# `service` feature.
|
|
tower = { workspace = true }
|
|
thread_local = { workspace = true, optional = true }
|
|
rayon = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
cuprate-helper = { path = "../../helper", features = ["thread"] }
|
|
cuprate-test-utils = { path = "../../test-utils" }
|
|
|
|
tokio = { workspace = true, features = ["full"] }
|
|
tempfile = { workspace = true }
|
|
pretty_assertions = { workspace = true }
|
|
proptest = { workspace = true }
|
|
hex = { workspace = true }
|
|
hex-literal = { workspace = true }
|