paralock 0.1.1

Rust SDK of Paralock: embed a market maker or a taker for trustless ZEC to stablecoin swaps (htlc and private adaptor mode) in a Rust server. Zcash JSON-RPC and lightwalletd backends, durable swap stores, the maker HTTP API (server and client) and a price feed, wire-compatible with @paralock/sdk.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "paralock"
version = "0.1.1"
authors = ["bitfalt <https://github.com/bitfalt>"]
build = false
include = [
    "src/**/*.rs",
    "proto/*.proto",
    "examples/*.rs",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust SDK of Paralock: embed a market maker or a taker for trustless ZEC to stablecoin swaps (htlc and private adaptor mode) in a Rust server. Zcash JSON-RPC and lightwalletd backends, durable swap stores, the maker HTTP API (server and client) and a price feed, wire-compatible with @paralock/sdk."
homepage = "https://paralock.xyz"
documentation = "https://docs.rs/paralock"
readme = "README.md"
keywords = [
    "zcash",
    "atomic-swap",
    "htlc",
    "stablecoin",
    "market-maker",
]
categories = [
    "cryptography::cryptocurrencies",
    "network-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/bitfalt/paralock"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
client = []
default = [
    "client",
    "tempo",
]
evm = ["dep:paralock-evm"]
lightwalletd = [
    "dep:tonic",
    "dep:tonic-prost",
    "dep:prost",
]
price-feed = []
server = [
    "dep:axum",
    "dep:url",
]
tempo = ["paralock-evm?/tempo"]

[lib]
name = "paralock"
path = "src/lib.rs"

[[example]]
name = "devnet"
path = "examples/devnet.rs"
required-features = [
    "evm",
    "server",
    "client",
    "price-feed",
    "lightwalletd",
]

[dependencies.async-trait]
version = "0.1.89"

[dependencies.axum]
version = "0.8.4"
features = [
    "tokio",
    "http1",
]
optional = true
default-features = false

[dependencies.paralock-core]
version = "0.1.1"

[dependencies.paralock-evm]
version = "0.1.1"
optional = true
default-features = false

[dependencies.prost]
version = "0.14.1"
optional = true

[dependencies.rand_core]
version = "0.6.4"
default-features = false

[dependencies.reqwest]
version = "0.13.4"
features = ["rustls"]
default-features = false

[dependencies.serde]
version = "1.0.219"
features = [
    "std",
    "derive",
]
default-features = false

[dependencies.serde_json]
version = "1.0.140"
features = [
    "std",
    "raw_value",
    "float_roundtrip",
]
default-features = false

[dependencies.thiserror]
version = "2.0.12"
default-features = false

[dependencies.tokio]
version = "1.47.0"
features = [
    "rt",
    "sync",
    "time",
    "macros",
]
default-features = false

[dependencies.tonic]
version = "0.14.2"
features = [
    "channel",
    "codegen",
    "tls-aws-lc",
    "tls-native-roots",
    "tls-webpki-roots",
]
optional = true
default-features = false

[dependencies.tonic-prost]
version = "0.14.2"
optional = true

[dependencies.tracing]
version = "0.1.41"
features = ["std"]
default-features = false

[dependencies.url]
version = "2.5.4"
optional = true

[dependencies.zeroize]
version = "1.8.1"
features = [
    "alloc",
    "derive",
]
default-features = false

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.k256]
version = "0.13.4"
features = [
    "arithmetic",
    "ecdsa",
]
default-features = false

[dev-dependencies.sha2]
version = "0.10.9"
default-features = false

[dev-dependencies.tokio]
version = "1.47.0"
features = [
    "rt-multi-thread",
    "macros",
    "time",
    "sync",
    "net",
    "test-util",
]
default-features = false

[dev-dependencies.tower]
version = "0.5.2"
features = ["util"]
default-features = false

[dev-dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "fmt",
    "env-filter",
    "ansi",
]
default-features = false

[lints.clippy]
expect_used = "warn"
panic = "warn"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"