[package]
name = "grid-sdk"
version = "0.2.2"
authors = ["Cargill Incorporated"]
description = """\
Hyperledger Grid is a platform for building supply chain solutions \
that include distributed ledger components. It provides a growing \
set of tools that accelerate development for supply chain smart contracts\
and client interfaces.
"""
homepage = "https://grid.hyperledger.org"
edition = "2018"
license = "Apache-2.0"
[dependencies]
actix-web = { version = "3", optional = true }
base64 = { version = "0.13", optional = true }
cfg-if = { version = "1", optional = true }
chrono = { version = "0.4", optional = true }
diesel = { version = "1.0", features = ["chrono", "r2d2", "serde_json"], optional = true }
diesel_migrations = { version = "1.4", optional = true }
log = { version = "0.4", optional = true }
futures = { version = "0.3", optional = true }
futures-util = { version = "0.3", optional = true }
reqwest = { version = "0.10.1", features = ["blocking", "json"], optional = true }
protobuf = "2.19"
sabre-sdk = { version = "0.5", optional = true }
sawtooth-sdk = { version = "0.4", features = ["transact-compat"], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_derive = { version = "1.0" }
serde_json = { version = "1.0", optional = true }
url = { version = "2.1", optional = true }
uuid = { version = "0.8", features = ["v4"], optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
rust-crypto-wasm = "0.3"
sabre-sdk = "0.5"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
cylinder = { version = "0.2.2", features = ["key-load"], optional = true}
rust-crypto = "0.2"
sawtooth-sdk = "0.4"
quick-xml = { version = "0.22", features = [ "serialize" ], optional = true }
libc = { version = "0.2.94", optional = true}
tempfile = "3"
[build-dependencies]
protoc-rust = "2.14"
glob = "0.3"
[features]
default = []
stable = [
"default",
"backend",
"backend-sawtooth",
"backend-splinter",
"location",
"pike",
"postgres",
"product",
"product-gdsn",
"rest-api",
"rest-api-endpoint-agent",
"rest-api-endpoint-batches",
"rest-api-endpoint-location",
"rest-api-endpoint-organization",
"rest-api-endpoint-product",
"rest-api-endpoint-role",
"rest-api-endpoint-schema",
"rest-api-resources-agent",
"rest-api-resources-batches",
"rest-api-resources-location",
"rest-api-resources-organization",
"rest-api-resources-product",
"rest-api-resources-role",
"rest-api-resources-schema",
"schema",
"sqlite",
]
experimental = [
"stable",
"batch-processor",
"batch-store",
"client",
"client-reqwest",
"pike-rest-api",
"purchase-order",
"rest-api-resources",
"rest-api-actix-web-3",
"rest-api-actix-web-3-run",
"rest-api-endpoint-purchase-order",
"rest-api-endpoint-record",
"rest-api-endpoint-submit",
"rest-api-resources-purchase-order",
"rest-api-resources-submit",
"rest-api-resources-track-and-trace",
"sawtooth-compat",
"track-and-trace",
"workflow"
]
backend = ["base64", "futures", "url"]
backend-sawtooth = ["backend", "uuid"]
backend-splinter = ["backend", "reqwest"]
client = []
client-reqwest = ["client", "reqwest"]
location = ["pike", "schema"]
pike = ["cfg-if"]
pike-rest-api = ["pike", "serde_json", "rest-api-resources"]
product-gdsn = [ "libc", "quick-xml", "reqwest" ]
purchase-order = []
product = ["pike", "schema"]
schema = ["pike"]
track-and-trace = ["base64"]
batch-processor = ["batch-store", "backend", "log", "reqwest", "uuid"]
batch-store = ["chrono"]
postgres = ["chrono", "diesel/postgres", "diesel_migrations", "log"]
rest-api = []
rest-api-actix-web-3 = [
"actix-web",
"backend",
"futures",
"futures-util",
"rest-api",
"rest-api-resources",
"url"
]
rest-api-actix-web-3-run = ["rest-api-endpoint-submit"]
rest-api-endpoint-agent = ["pike", "rest-api-resources-agent"]
rest-api-endpoint-batches = ["backend", "rest-api-resources-batches"]
rest-api-endpoint-location = ["location", "rest-api-resources-location"]
rest-api-endpoint-organization = ["pike", "rest-api-resources-organization"]
rest-api-endpoint-product = ["product", "rest-api-resources-product"]
rest-api-endpoint-purchase-order = ["purchase-order", "rest-api-resources-purchase-order"]
rest-api-endpoint-record = ["rest-api-resources-track-and-trace", "track-and-trace"]
rest-api-endpoint-role = ["pike", "rest-api-resources-role"]
rest-api-endpoint-schema = ["rest-api-resources-schema", "schema"]
rest-api-endpoint-submit = ["batch-store", "rest-api-resources-submit"]
rest-api-resources = ["rest-api"]
rest-api-resources-agent = ["pike", "rest-api-resources", "serde_json"]
rest-api-resources-batches = ["backend", "rest-api-resources"]
rest-api-resources-location = ["location", "rest-api-resources"]
rest-api-resources-organization = ["pike", "rest-api-resources"]
rest-api-resources-product = ["product", "rest-api-resources"]
rest-api-resources-purchase-order = ["purchase-order", "rest-api-resources"]
rest-api-resources-role = ["pike", "rest-api-resources"]
rest-api-resources-schema = ["rest-api-resources", "schema"]
rest-api-resources-submit = ["batch-store", "cylinder", "rest-api-resources", "sabre-sdk"]
rest-api-resources-track-and-trace = ["rest-api-resources", "track-and-trace"]
sawtooth-compat = [
"sabre-sdk",
"sawtooth-sdk"
]
sqlite = ["chrono", "diesel/sqlite", "diesel_migrations", "log"]
workflow = []