2024-03-27 00:46:32 +00:00
|
|
|
[package]
|
|
|
|
name = "cuprate-types"
|
|
|
|
version = "0.0.0"
|
|
|
|
edition = "2021"
|
|
|
|
description = "Cuprate data types"
|
|
|
|
license = "MIT"
|
|
|
|
authors = ["hinto-janai"]
|
|
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/types"
|
|
|
|
keywords = ["cuprate", "types"]
|
|
|
|
|
|
|
|
[features]
|
2024-12-06 01:45:27 +00:00
|
|
|
default = ["blockchain", "epee", "serde", "json", "hex", "rpc"]
|
|
|
|
blockchain = ["rpc"]
|
2024-07-16 21:47:50 +00:00
|
|
|
epee = ["dep:cuprate-epee-encoding"]
|
2024-11-01 20:22:14 +00:00
|
|
|
serde = ["dep:serde", "hex"]
|
2024-08-08 23:56:13 +00:00
|
|
|
proptest = ["dep:proptest", "dep:proptest-derive"]
|
2024-10-05 00:47:44 +00:00
|
|
|
json = ["hex", "dep:cuprate-helper"]
|
2024-11-01 20:22:14 +00:00
|
|
|
# We sadly have no choice but to enable serde here as otherwise we will get warnings from the `hex` dep being unused.
|
2024-12-06 01:45:27 +00:00
|
|
|
# This isn't too bad as `Hex` only makes sense with serde anyway.
|
2024-11-01 20:22:14 +00:00
|
|
|
hex = ["serde", "dep:hex"]
|
2024-12-06 01:45:27 +00:00
|
|
|
rpc = ["hex"]
|
2024-03-27 00:46:32 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-12-05 21:05:22 +00:00
|
|
|
cuprate-epee-encoding = { workspace = true, optional = true, features = ["std"] }
|
|
|
|
cuprate-helper = { workspace = true, optional = true, features = ["cast"] }
|
|
|
|
cuprate-fixed-bytes = { workspace = true, features = ["std", "serde"] }
|
2024-07-16 21:47:50 +00:00
|
|
|
|
|
|
|
bytes = { workspace = true }
|
2024-12-06 01:45:27 +00:00
|
|
|
cfg-if = { workspace = true }
|
2024-03-27 00:46:32 +00:00
|
|
|
curve25519-dalek = { workspace = true }
|
|
|
|
monero-serai = { workspace = true }
|
2024-10-05 00:47:44 +00:00
|
|
|
hex = { workspace = true, features = ["serde", "alloc"], optional = true }
|
2024-11-01 20:22:14 +00:00
|
|
|
serde = { workspace = true, features = ["std", "derive"], optional = true }
|
2024-10-11 22:57:43 +00:00
|
|
|
strum = { workspace = true, features = ["derive"] }
|
2024-08-08 23:56:13 +00:00
|
|
|
thiserror = { workspace = true }
|
|
|
|
|
|
|
|
proptest = { workspace = true, optional = true }
|
|
|
|
proptest-derive = { workspace = true, optional = true }
|
2024-03-27 00:46:32 +00:00
|
|
|
|
2024-09-02 17:12:54 +00:00
|
|
|
[dev-dependencies]
|
2024-10-05 00:47:44 +00:00
|
|
|
hex-literal = { workspace = true }
|
|
|
|
pretty_assertions = { workspace = true }
|
|
|
|
serde_json = { workspace = true, features = ["std"] }
|
2024-09-02 17:12:54 +00:00
|
|
|
|
|
|
|
[lints]
|
2024-10-24 22:12:30 +00:00
|
|
|
workspace = true
|