[package]
name = "fuel-core-chain-config"
version = { workspace = true }
authors = { workspace = true }
categories = ["cryptography::cryptocurrencies"]
edition = { workspace = true }
homepage = { workspace = true }
keywords = ["blockchain", "cryptocurrencies", "fuel-client"]
license = { workspace = true }
repository = { workspace = true }
description = "Fuel Chain config types"
[dependencies]
anyhow = { workspace = true }
bech32 = { version = "0.9.0", default-features = false, optional = true }
derivative = { workspace = true }
fuel-core-storage = { workspace = true, features = ["alloc"] }
fuel-core-types = { workspace = true, default-features = false, features = [
"alloc",
"serde",
] }
itertools = { workspace = true, features = ["use_alloc"] }
parquet = { workspace = true, features = ["zstd"], optional = true }
postcard = { workspace = true, features = ["alloc"] }
rand = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive", "rc"] }
serde_json = { version = "1.0", features = ["raw_value"], optional = true }
serde_with = { workspace = true, features = ["macros", "hex"] }
tracing = { version = "0.1", default-features = false, optional = true }
[dev-dependencies]
bytes = { workspace = true }
fuel-core-chain-config = { path = ".", features = ["parquet", "test-helpers"] }
fuel-core-types = { workspace = true, default-features = false, features = [
"alloc",
"random",
"serde",
] }
insta = { workspace = true }
pretty_assertions = { workspace = true }
rand = { workspace = true }
serde_json = { version = "1.0", features = ["raw_value"] }
strum = { workspace = true, features = ["derive"] }
tempfile = { workspace = true }
test-case = { workspace = true }
[features]
std = [
"itertools/use_std",
"serde_json/std",
"fuel-core-types/std",
"anyhow/std",
"tracing?/std",
"bech32?/std",
]
default = ["std"]
parquet = ["std", "dep:parquet", "postcard/use-std"]
random = ["dep:rand", "fuel-core-types/random"]
test-helpers = [
"dep:bech32",
"dep:rand",
"dep:tracing",
"fuel-core-types/random",
"fuel-core-types/test-helpers",
]