mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-12-22 19:49:33 +00:00
Boog900
ecd077b402
* init config * split sections * finish initial config. * fix clap * misc changes * fix doc * fix test & clippy * fix test 2 * try fix windows * testing * testing 2 * fix windows test * fix windows: the remix. * review comments * fix imports * rename & fix default config file * fix cargo hack * enable serde on `cuprate-helper` * changes from matrix chats * fix ci * fix doc * fix doc test * move Cuprated.toml * remove default.rs * `size` -> `bytes` * `addressbook_path` -> `address_book_path` * fix config output * fix ci * Update binaries/cuprated/src/config/args.rs Co-authored-by: hinto-janai <hinto.janai@protonmail.com> --------- Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
53 lines
1.9 KiB
TOML
53 lines
1.9 KiB
TOML
[package]
|
|
name = "cuprate-helper"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
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"
|
|
|
|
|
|
[features]
|
|
# All features off by default.
|
|
default = []
|
|
std = []
|
|
atomic = ["dep:crossbeam"]
|
|
asynch = ["dep:futures", "dep:rayon"]
|
|
cast = []
|
|
constants = []
|
|
crypto = ["dep:curve25519-dalek", "dep:monero-serai", "std"]
|
|
fs = ["dep:dirs", "std"]
|
|
num = []
|
|
map = ["cast", "dep:monero-serai", "dep:cuprate-constants"]
|
|
time = ["dep:chrono", "std"]
|
|
thread = ["std", "dep:target_os_lib"]
|
|
tx = ["dep:monero-serai"]
|
|
|
|
[dependencies]
|
|
cuprate-constants = { workspace = true, optional = true, features = ["block"] }
|
|
|
|
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 }
|
|
|
|
serde = { workspace = true, optional = true, features = ["derive"] }
|
|
|
|
# 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]
|
|
target_os_lib = { package = "libc", version = "0.2.158", optional = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["full"] }
|
|
curve25519-dalek = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|