mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-22 22:36:05 +01:00
* fix(wallet): move transaction ID calculation before database operations * fix(sql): remove on ys from on conflict transaction insert Since the id is created from the ys we know that if there is a conflict the ys are the same and do not need to be updated. * feat: bench for transactio id * chore: fmt
61 lines
1.5 KiB
TOML
61 lines
1.5 KiB
TOML
[package]
|
|
name = "cdk-common"
|
|
version.workspace = true
|
|
authors = ["CDK Developers"]
|
|
description = "CDK common types and traits"
|
|
homepage = "https://github.com/cashubtc/cdk"
|
|
repository = "https://github.com/cashubtc/cdk.git"
|
|
edition.workspace = true
|
|
rust-version.workspace = true # MSRV
|
|
license.workspace = true
|
|
readme = "README.md"
|
|
|
|
[features]
|
|
default = ["mint", "wallet"]
|
|
swagger = ["dep:utoipa", "cashu/swagger"]
|
|
test = []
|
|
bench = []
|
|
wallet = ["cashu/wallet"]
|
|
mint = ["cashu/mint", "dep:uuid"]
|
|
auth = ["cashu/auth"]
|
|
prometheus = ["cdk-prometheus/default"]
|
|
|
|
[dependencies]
|
|
async-trait.workspace = true
|
|
bitcoin.workspace = true
|
|
cashu.workspace = true
|
|
cbor-diag.workspace = true
|
|
ciborium.workspace = true
|
|
serde.workspace = true
|
|
lightning-invoice.workspace = true
|
|
lightning.workspace = true
|
|
thiserror.workspace = true
|
|
tracing.workspace = true
|
|
cdk-prometheus = { workspace = true, optional = true}
|
|
url.workspace = true
|
|
uuid = { workspace = true, optional = true }
|
|
utoipa = { workspace = true, optional = true }
|
|
futures.workspace = true
|
|
anyhow.workspace = true
|
|
serde_json.workspace = true
|
|
serde_with.workspace = true
|
|
web-time.workspace = true
|
|
tokio.workspace = true
|
|
parking_lot = "0.12.5"
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
uuid = { workspace = true, features = ["js"], optional = true }
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
wasm-bindgen = "0.2"
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[dev-dependencies]
|
|
rand.workspace = true
|
|
bip39.workspace = true
|
|
wasm-bindgen-test = "0.3"
|
|
criterion.workspace = true
|
|
|
|
[[bench]]
|
|
name = "transaction_id_benchmark"
|
|
harness = false
|