2024-05-29 01:18:30 +00:00
|
|
|
[package]
|
2024-06-24 01:30:47 +00:00
|
|
|
name = "cuprate-database"
|
2024-06-26 21:51:06 +00:00
|
|
|
version = "0.0.1"
|
2024-05-29 19:00:29 +00:00
|
|
|
edition = "2021"
|
|
|
|
description = "Cuprate's database abstraction"
|
|
|
|
license = "MIT"
|
|
|
|
authors = ["hinto-janai"]
|
|
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/storage/database"
|
|
|
|
keywords = ["cuprate", "database"]
|
|
|
|
|
|
|
|
[features]
|
2024-11-01 20:22:14 +00:00
|
|
|
default = ["heed"]
|
2024-06-26 21:51:06 +00:00
|
|
|
# default = ["redb"]
|
|
|
|
# default = ["redb-memory"]
|
2024-11-01 20:22:14 +00:00
|
|
|
heed = []
|
2024-06-26 21:51:06 +00:00
|
|
|
redb = ["dep:redb"]
|
|
|
|
redb-memory = ["redb"]
|
2024-05-29 01:18:30 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-09-22 18:34:20 +00:00
|
|
|
bytemuck = { version = "1.18.0", features = ["must_cast", "derive", "min_const_generics", "extern_crate_alloc"] }
|
2024-06-26 21:51:06 +00:00
|
|
|
bytes = { workspace = true }
|
|
|
|
cfg-if = { workspace = true }
|
|
|
|
page_size = { version = "0.6.0" } # Needed for database resizes, they must be a multiple of the OS page size.
|
2024-07-11 13:20:56 +00:00
|
|
|
paste = { workspace = true }
|
2024-06-26 21:51:06 +00:00
|
|
|
thiserror = { workspace = true }
|
|
|
|
|
|
|
|
# Optional features.
|
2024-11-01 20:22:14 +00:00
|
|
|
heed = { version = "0.20.5", features = ["read-txn-no-tls"] }
|
2024-09-22 18:34:20 +00:00
|
|
|
redb = { version = "2.1.3", optional = true }
|
2024-06-26 21:51:06 +00:00
|
|
|
serde = { workspace = true, optional = true }
|
2024-05-29 19:00:29 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-09-22 18:34:20 +00:00
|
|
|
bytemuck = { version = "1.18.0", features = ["must_cast", "derive", "min_const_generics", "extern_crate_alloc"] }
|
2024-06-26 21:51:06 +00:00
|
|
|
page_size = { version = "0.6.0" }
|
2024-09-22 18:34:20 +00:00
|
|
|
tempfile = { version = "3.12.0" }
|
2024-09-02 17:12:54 +00:00
|
|
|
|
|
|
|
[lints]
|
2024-09-22 18:34:20 +00:00
|
|
|
workspace = true
|