chore: Use published darkfi-serial crate where applicable

This commit is contained in:
parazyd
2024-10-15 16:20:47 +02:00
parent fbe6937a20
commit 7a3b554e0d
19 changed files with 28 additions and 46 deletions

17
Cargo.lock generated
View File

@@ -1941,7 +1941,7 @@ dependencies = [
"clap 4.5.20",
"criterion",
"crypto_api_chachapoly",
"darkfi-derive 0.4.2",
"darkfi-derive",
"darkfi-sdk",
"darkfi-serial",
"easy-parallel",
@@ -2004,17 +2004,6 @@ dependencies = [
"sled-overlay",
]
[[package]]
name = "darkfi-derive"
version = "0.4.2"
dependencies = [
"darkfi-derive-internal",
"proc-macro-crate 3.2.0",
"proc-macro2",
"quote",
"syn 2.0.79",
]
[[package]]
name = "darkfi-derive"
version = "0.4.2"
@@ -2100,11 +2089,13 @@ dependencies = [
[[package]]
name = "darkfi-serial"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2a240620a7858db545156a1de5b215c9b10344c7ad527eed0fc67efd5cea08a"
dependencies = [
"async-trait",
"blake3 1.5.4",
"bridgetree",
"darkfi-derive 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
"darkfi-derive",
"futures-lite 2.3.0",
"num-bigint",
"pasta_curves",

View File

@@ -92,10 +92,13 @@ structopt-toml = {version= "0.5.1", optional = true}
toml = {version = "0.8.19", optional = true}
# Utilities
#darkfi-serial = {path = "src/serial", optional = true}
#darkfi-derive = {path = "src/serial/derive", optional = true}
darkfi-serial = {version = "0.4.2", optional = true}
darkfi-derive = {version = "0.4.2", optional = true}
# TODO: check chrono usage and impl our own
chrono = {version = "0.4.38", optional = true}
darkfi-serial = {path = "src/serial", optional = true}
darkfi-derive = {path = "src/serial/derive", optional = true}
lazy_static = {version = "1.5.0", optional = true}
num-bigint = {version = "0.4.6", optional = true}
url = {version = "2.5.2", features = ["serde"], optional = true}
@@ -150,6 +153,7 @@ blockchain = [
"num-bigint",
"darkfi-serial/num-bigint",
"tx",
"util",
]

View File

@@ -10,7 +10,7 @@ edition = "2021"
[dependencies]
darkfi = {path = "../../", features = ["async-daemonize", "async-serial", "system", "util", "rpc"]}
darkfi-serial = {path = "../../src/serial", features = ["async"]}
darkfi-serial = {version = "0.4.2", features = ["async"]}
# Misc
log = "0.4.22"
@@ -40,4 +40,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -14,7 +14,7 @@ darkfi = {path = "../../", features = ["async-daemonize", "bs58"]}
darkfi_money_contract = {path = "../../src/contract/money"}
darkfi-contract-test-harness = {path = "../../src/contract/test-harness"}
darkfi-sdk = {path = "../../src/sdk"}
darkfi-serial = {path = "../../src/serial"}
darkfi-serial = "0.4.2"
# Misc
blake3 = "1.5.4"
@@ -44,4 +44,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -20,7 +20,7 @@ path = "src/main.rs"
[dependencies]
darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "rpc", "zk"]}
darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
darkfi-serial = {path = "../../src/serial", features = ["async"]}
darkfi-serial = {version = "0.4.2", features = ["async"]}
libc = "0.2.159"
# Event Graph DB

View File

@@ -30,7 +30,7 @@ zeromq = { version = "0.4.1", default-features = false, features = ["async-std-r
darkfi = {path = "../../", features = ["async-daemonize", "event-graph", "net", "util", "system", "zk"]}
evgrd = {path = "../../script/evgrd/"}
#darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
darkfi-serial = {path = "../../src/serial", features = ["async"]}
darkfi-serial = {version = "0.4.2", features = ["async"]}
thiserror = "1.0.64"
smol = "2.0.2"
atomic_float = "1.1.0"

View File

@@ -12,7 +12,7 @@ edition = "2021"
async-trait = "0.1.83"
blake3 = "1.5.4"
darkfi = {path = "../../../", features = ["dht"]}
darkfi-serial = {path = "../../../src/serial", features = ["derive", "crypto"]}
darkfi-serial = {version = "0.4.2", features = ["derive", "crypto"]}
easy-parallel = "3.3.1"
log = "0.4.22"
rand = "0.8.5"
@@ -22,4 +22,3 @@ url = "2.5.2"
[lints]
workspace = true

View File

@@ -15,7 +15,7 @@ darkfi_money_contract = {path = "../../src/contract/money", features = ["no-entr
darkfi_dao_contract = {path = "../../src/contract/dao", features = ["no-entrypoint", "client"]}
darkfi_deployooor_contract = {path = "../../src/contract/deployooor", features = ["no-entrypoint", "client"]}
darkfi-sdk = {path = "../../src/sdk", features = ["async"]}
darkfi-serial = {path = "../../src/serial"}
darkfi-serial = "0.4.2"
# Misc
blake3 = "1.5.4"
@@ -44,4 +44,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -10,7 +10,7 @@ repository = "https://codeberg.org/darkrenaissance/darkfi"
[dependencies]
darkfi = {path = "../../../", features = ["async-daemonize", "geode", "rpc"]}
darkfi-serial = {path = "../../../src/serial", features = ["hash"]}
darkfi-serial = {version = "0.4.2", features = ["hash"]}
# Misc
async-trait = "0.1.83"
@@ -33,4 +33,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -12,7 +12,7 @@ repository = "https://codeberg.org/darkrenaissance/darkfi"
genevd = {path = "../genevd"}
darkfi = {path = "../../../", features = ["event-graph", "rpc", "bs58"]}
darkfi-serial = {path = "../../../src/serial"}
darkfi-serial = "0.4.2"
smol = "2.0.2"
clap = {version = "4.4.11", features = ["derive"]}
@@ -23,4 +23,3 @@ url = "2.5.2"
[lints]
workspace = true

View File

@@ -22,7 +22,7 @@ darkfi = { path = "../../../", features = [
"event-graph",
"rpc",
] }
darkfi-serial = { path = "../../../src/serial" }
darkfi-serial = "0.4.2"
# Crypto
blake3 = "1.5.4"
@@ -50,4 +50,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -12,7 +12,7 @@ edition = "2021"
# Darkfi
darkfi = {path = "../../", features = ["async-daemonize", "validator", "rpc"]}
darkfi-sdk = {path = "../../src/sdk"}
darkfi-serial = {path = "../../src/serial", features = ["async"]}
darkfi-serial = {version = "0.4.2", features = ["async"]}
# Misc
log = "0.4.22"
@@ -36,4 +36,3 @@ structopt-toml = "0.5.1"
[lints]
workspace = true

View File

@@ -23,7 +23,8 @@ darkfi = { path = "../../../", features = [
"event-graph",
"rpc",
] }
darkfi-serial = { path = "../../../src/serial" }
darkfi-serial = "0.4.2"
# Event Graph DB
sled-overlay = "0.1.3"

View File

@@ -12,7 +12,7 @@ edition = "2021"
[dependencies]
# ANCHOR: darkfi
darkfi = {path = "../../../", features = ["toml", "async-daemonize", "rpc"]}
darkfi-serial = {path = "../../../src/serial"}
darkfi-serial = "0.4.2"
# ANCHOR_END: darkfi
# daemon
@@ -35,4 +35,3 @@ url = "2.5.2"
[lints]
workspace = true

View File

@@ -12,7 +12,7 @@ crate-type = ["cdylib", "rlib"]
blake2b_simd = "1.0.2"
bs58 = "0.5.1"
darkfi-sdk = { path = "../../sdk" }
darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
darkfi-serial = { version = "0.4.2", features = ["derive", "crypto"] }
darkfi_money_contract = { path = "../money", features = ["no-entrypoint"] }
thiserror = "1.0.64"
@@ -51,4 +51,3 @@ client = [
[lints]
workspace = true

View File

@@ -10,7 +10,7 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
darkfi-sdk = { path = "../../sdk" }
darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
darkfi-serial = { version = "0.4.2", features = ["derive", "crypto"] }
thiserror = "1.0.64"
wasmparser = "0.219.1"
@@ -44,4 +44,3 @@ client = [
[lints]
workspace = true

View File

@@ -12,7 +12,7 @@ crate-type = ["cdylib", "rlib"]
blake3 = "1.5.4"
bs58 = "0.5.1"
darkfi-sdk = { path = "../../sdk" }
darkfi-serial = { path = "../../serial", features = ["derive", "crypto"] }
darkfi-serial = { version = "0.4.2", features = ["derive", "crypto"] }
thiserror = "1.0.64"
# The following dependencies are used for the client API and
@@ -51,4 +51,3 @@ client = [
[lints]
workspace = true

View File

@@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
darkfi = {path = "../../../", features = ["validator"]}
darkfi-sdk = {path = "../../../src/sdk"}
darkfi-serial = {path = "../../../src/serial", features = ["crypto"]}
darkfi-serial = {version = "0.4.2", features = ["crypto"]}
darkfi_dao_contract = {path = "../dao", features = ["client", "no-entrypoint"]}
darkfi_money_contract = {path = "../money", features = ["client", "no-entrypoint"]}
@@ -23,4 +23,3 @@ sled-overlay = "0.1.3"
[lints]
workspace = true

View File

@@ -20,7 +20,7 @@ async = ["darkfi-serial/async"]
thiserror = "1.0.64"
# Serialization
darkfi-serial = {path = "../serial", features = ["crypto"]}
darkfi-serial = {version = "0.4.2", features = ["crypto"]}
# Encoding
bs58 = "0.5.1"
@@ -48,4 +48,3 @@ rand = "0.8.5"
[lints]
workspace = true