[package]
edition = "2021"
name = "hypercall-client"
version = "0.3.0"
build = false
include = [
"Cargo.toml",
"README.md",
"src/**",
"examples/rfq_v2_*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client library for interacting with Hypercall trading platform"
homepage = "https://github.com/hypercall-public"
documentation = "https://docs.rs/hypercall-client"
readme = "README.md"
keywords = [
"hypercall",
"trading",
"options",
"sdk",
]
categories = [
"api-bindings",
"web-programming::websocket",
]
license = "MIT"
[package.metadata.cargo-machete]
ignored = ["aws-smithy-types"]
[features]
alloy-native-tls = [
"alloy/reqwest-native-tls",
"reqwest/native-tls",
]
alloy-rustls = [
"alloy/reqwest-rustls-tls",
"reqwest/rustls-tls",
]
default = [
"alloy-rustls",
"rfq-v2",
]
kms = [
"alloy/signer-aws",
"dep:aws-smithy-types",
]
rfq-v2 = [
"dep:base64",
"hypercall-sdk-types/rfq-v2",
"hypercall-ws-protocol/rfq-v2",
]
test-utils = []
[lib]
name = "hypercall_client"
path = "src/lib.rs"
[[example]]
name = "rfq_v2_maker"
path = "examples/rfq_v2_maker.rs"
required-features = ["rfq-v2"]
[[example]]
name = "rfq_v2_taker"
path = "examples/rfq_v2_taker.rs"
required-features = ["rfq-v2"]
[dependencies.alloy]
version = "1.0"
features = [
"contract",
"provider-http",
"network",
"signer-local",
"eip712",
"reqwest",
]
default-features = false
[dependencies.aws-smithy-types]
version = ">=1.5.0, <1.7.0"
optional = true
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.displaystr]
version = "0.1.16"
[dependencies.flate2]
version = "1"
[dependencies.futures]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.hypercall-sdk-types]
version = "0.3.0"
[dependencies.hypercall-ws-protocol]
version = "0.3.0"
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.11"
features = [
"json",
"gzip",
]
default-features = false
[dependencies.rust_decimal]
version = "1.39"
features = ["serde-with-str"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha3]
version = "0.10"
[dependencies.sonic-rs]
version = "0.5"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"macros",
"net",
"rt",
"sync",
"time",
]
[dependencies.tokio-native-tls]
version = "0.3"
[dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v7"]
[dev-dependencies.alloy]
version = "1.0"
features = ["json-rpc"]
default-features = false
[dev-dependencies.hypercall-sdk-types]
version = "0.3.0"
features = ["test-utils"]
[dev-dependencies.proptest]
version = "1.0"
[dev-dependencies.rust_decimal_macros]
version = "1.35"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tower]
version = "0.5"
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = ["cfg(kani)"]
[lints.rust.warnings]
level = "deny"
priority = -1