[package]
name = "fuel-core-client"
version = { workspace = true }
authors = { workspace = true }
categories = ["concurrency", "cryptography::cryptocurrencies", "emulators"]
edition = { workspace = true }
homepage = { workspace = true }
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"]
license = { workspace = true }
repository = { workspace = true }
description = "Tx client and schema specification."

[dependencies]
anyhow = { workspace = true }
cynic = { version = "2.2.1", features = ["http-reqwest"] }
derive_more = { version = "0.99" }
eventsource-client = { version = "0.10.2", optional = true }
fuel-core-types = { workspace = true, path = "../types", features = ["serde"] }
futures = { workspace = true, optional = true }
hex = "0.4"
# Included to enable webpki in the eventsource client
hyper-rustls = { version = "0.22", features = ["webpki-tokio"], optional = true }
itertools = { workspace = true }
reqwest = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { version = "1.0", features = ["raw_value"] }
tai64 = { version = "4.0", features = ["serde"] }
thiserror = "1.0"
tracing = "0.1"

[dev-dependencies]
insta = { workspace = true }

[build-dependencies]
schemafy_lib = { version = "0.5", optional = true }
serde_json = { version = "1.0", features = ["raw_value"], optional = true }

[features]
default = ["subscriptions"]
test-helpers = []
dap = ["schemafy_lib", "serde_json"]
subscriptions = ["eventsource-client", "futures", "hyper-rustls"]
