# 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"
name = "fabric-sdk"
version = "0.3.0"
authors = ["Arne Fuchs <arnefuchs@pm.me>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Interact and program chaincode for the Hyperledger Fabric blockchain network
"""
readme = "README.md"
keywords = [
    "fabric",
    "blockchain",
    "hyperledger",
    "smart-contract",
    "web3",
]
license = "Apache-2.0"
repository = "https://github.com/LF-Decentralized-Trust-labs/fabric-sdk-rust"

[features]
chaincode = [
    "dep:tokio",
    "dep:futures-util",
    "dep:fabric-sdk-derives",
]
client = []
default = ["client"]

[lib]
name = "fabric_sdk"
path = "src/lib.rs"
doctest = false

[[test]]
name = "handshake"
path = "tests/handshake.rs"

[[test]]
name = "transaction"
path = "tests/transaction.rs"

[dependencies.ecdsa]
version = "0.16.9"
features = [
    "der",
    "arithmetic",
]

[dependencies.fabric-sdk-derives]
version = "0.1.0"
optional = true

[dependencies.futures-channel]
version = "0.3.31"

[dependencies.futures-util]
version = "0.3.31"
optional = true

[dependencies.hex]
version = "0.4.3"

[dependencies.openssl]
version = "0.10.75"
features = ["vendored"]

[dependencies.p256]
version = "0.13.2"

[dependencies.prost]
version = "0.14.1"

[dependencies.prost-types]
version = "0.14.1"

[dependencies.serde]
version = "1.0.219"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.143"

[dependencies.tokio]
version = "1.28.0"
features = ["full"]
optional = true

[dependencies.tonic]
version = "0.14.2"
features = ["tls-aws-lc"]

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

[dev-dependencies.dotenv]
version = "0.15.0"

[build-dependencies.tonic-prost-build]
version = "0.14.2"
default-features = false
