[package]
name = "fuel-core-compression-service"
description = "Service responsible for compression of fuel blocks for DA"
version = { workspace = true }
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }

[features]
test-helpers = [
    "fuel-core-services/test-helpers",
    "fuel-core-types/test-helpers",
    "fuel-core-storage/test-helpers",
    "fuel-core-compression/test-helpers",
    "dep:rand",
    "dep:fuel-core-chain-config",
]
fault-proving = [
    "fuel-core-compression/fault-proving",
    "fuel-core-chain-config?/fault-proving",
    "fuel-core-types/fault-proving",
    "fuel-core-storage/fault-proving",
]

[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
enum-iterator = { workspace = true }
fuel-core-chain-config = { workspace = true, features = ["test-helpers"], optional = true }
fuel-core-compression = { workspace = true }
fuel-core-metrics = { workspace = true }
fuel-core-services = { workspace = true }
fuel-core-storage = { workspace = true, features = ["std"] }
fuel-core-types = { workspace = true }
futures = { workspace = true }
paste = { workspace = true }
rand = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }
strum = { workspace = true, features = ["derive"] }
strum_macros = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }

[dev-dependencies]
fuel-core-compression-service = { path = ".", features = ["test-helpers"] }
tokio-stream = { workspace = true }
