[package]
edition = "2024"
rust-version = "1.97"
name = "dex-sdk"
version = "1.38.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Strongly typed Rust SDK for Dex"
readme = "README.md"
license-file = "LICENSE"
repository = "https://github.com/superdurable/dex"
[features]
api-key-credential = ["dep:reqwest"]
default = ["api-key-credential"]
[lib]
name = "dex_sdk"
path = "src/lib.rs"
[[test]]
name = "api_key_credential"
path = "tests/api_key_credential.rs"
[[test]]
name = "compile_contracts"
path = "tests/compile_contracts.rs"
[[test]]
name = "cross_sdk"
path = "tests/cross_sdk.rs"
[[test]]
name = "error_contracts"
path = "tests/error_contracts.rs"
[[test]]
name = "flow_service_tls"
path = "tests/flow_service_tls.rs"
[[test]]
name = "integ"
path = "tests/integ.rs"
[dependencies.bytes]
version = "1"
[dependencies.dex-blob-cache]
version = "1.38.0"
[dependencies.dex-protocol]
version = "1.38.0"
[dependencies.gethostname]
version = "1.1"
[dependencies.http-body]
version = "1"
[dependencies.http-body-util]
version = "0.1"
[dependencies.prost]
version = "0.14"
[dependencies.prost-types]
version = "0.14"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
optional = true
default-features = false
[dependencies.rustls]
version = "0.23"
features = [
"ring",
"std",
"tls12",
]
default-features = false
[dependencies.rustls-native-certs]
version = "0.8.5"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"macros",
"net",
"rt-multi-thread",
"sync",
"time",
]
[dependencies.tokio-stream]
version = "0.1"
features = ["net"]
[dependencies.tonic]
version = "0.14"
features = ["tls-ring"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.h2]
version = "0.4"
[dev-dependencies.rcgen]
version = "0.14"
features = [
"pem",
"ring",
]
default-features = false
[dev-dependencies.sha2]
version = "0.10"
[dev-dependencies.tempfile]
version = "3"
[dev-dependencies.tokio-rustls]
version = "0.26"
features = [
"ring",
"tls12",
]
default-features = false
[dev-dependencies.tonic-prost]
version = "0.14"
[dev-dependencies.trybuild]
version = "1.0"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
dbg_macro = "warn"
let_underscore_future = "warn"
let_underscore_must_use = "warn"
match_wildcard_for_single_variants = "warn"
print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
unimplemented = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
[lints.rust]
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_must_use = "deny"