2024-01-21 00:04:09 +00:00
|
|
|
[package]
|
2024-01-22 01:56:34 +00:00
|
|
|
name = "cuprate-helper"
|
2024-01-21 00:04:09 +00:00
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
2024-01-22 01:56:34 +00:00
|
|
|
description = "Helper functions used around Cuprate."
|
|
|
|
license = "MIT"
|
|
|
|
authors = ["hinto-janai <hinto.janai@protonmail.com>", "Boog900"]
|
|
|
|
repository = "https://github.com/Cuprate/cuprate/tree/main/consensus"
|
|
|
|
|
2024-01-21 00:04:09 +00:00
|
|
|
|
|
|
|
[features]
|
2024-09-19 15:55:28 +00:00
|
|
|
# All features off by default.
|
|
|
|
default = []
|
2024-02-15 21:44:43 +00:00
|
|
|
std = []
|
|
|
|
atomic = ["dep:crossbeam"]
|
|
|
|
asynch = ["dep:futures", "dep:rayon"]
|
2024-09-02 17:09:52 +00:00
|
|
|
cast = []
|
2024-02-15 21:44:43 +00:00
|
|
|
constants = []
|
2024-10-24 21:10:33 +00:00
|
|
|
crypto = ["dep:curve25519-dalek", "dep:monero-serai", "std"]
|
2024-11-01 20:22:14 +00:00
|
|
|
fs = ["dep:dirs", "std"]
|
2024-02-15 21:44:43 +00:00
|
|
|
num = []
|
2024-10-02 17:51:58 +00:00
|
|
|
map = ["cast", "dep:monero-serai", "dep:cuprate-constants"]
|
2024-02-15 21:44:43 +00:00
|
|
|
time = ["dep:chrono", "std"]
|
|
|
|
thread = ["std", "dep:target_os_lib"]
|
2024-09-19 15:55:28 +00:00
|
|
|
tx = ["dep:monero-serai"]
|
2024-01-21 00:04:09 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-10-24 22:12:30 +00:00
|
|
|
cuprate-constants = { workspace = true, optional = true, features = ["block"] }
|
2024-10-02 17:51:58 +00:00
|
|
|
|
2024-10-24 21:10:33 +00:00
|
|
|
chrono = { workspace = true, optional = true, features = ["std", "clock"] }
|
|
|
|
crossbeam = { workspace = true, optional = true }
|
|
|
|
curve25519-dalek = { workspace = true, optional = true }
|
|
|
|
dirs = { workspace = true, optional = true }
|
|
|
|
futures = { workspace = true, optional = true, features = ["std"] }
|
|
|
|
monero-serai = { workspace = true, optional = true }
|
|
|
|
rayon = { workspace = true, optional = true }
|
2024-01-21 00:04:09 +00:00
|
|
|
|
|
|
|
# This is kinda a stupid work around.
|
|
|
|
# [thread] needs to activate one of these libs (windows|libc)
|
|
|
|
# although it depends on what target we're building for.
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
|
|
target_os_lib = { package = "windows", version = ">=0.51", features = ["Win32_System_Threading", "Win32_Foundation"], optional = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
2024-09-22 18:34:20 +00:00
|
|
|
target_os_lib = { package = "libc", version = "0.2.158", optional = true }
|
2024-01-21 00:04:09 +00:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-09-19 15:55:28 +00:00
|
|
|
tokio = { workspace = true, features = ["full"] }
|
|
|
|
curve25519-dalek = { workspace = true }
|
2024-09-02 17:12:54 +00:00
|
|
|
|
|
|
|
[lints]
|
2024-09-22 18:34:20 +00:00
|
|
|
workspace = true
|