[package]
name = "strict_encoding"
version = "2.3.0"
description = "Strict encoding: deterministic & confined binary serialization for strict types"
keywords = ["strict-types", "gadt", "serialization", "serde", "protobuf"]
categories = ["encoding", "parsing"]
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
edition = { workspace = true }
license = { workspace = true }
rust-version = { workspace = true }
readme = "README.md"
exclude = ["derive", "test_helpers"]
[dependencies]
amplify = { version = "4.0.0", features = ["proc_attr"] }
strict_encoding_derive = { version = "2.0.0", path = "derive", optional = true }
half = { version = "2.1.0", optional = true }
serde_crate = { package = "serde", version = "1", features = ["derive"], optional = true }
[dev-dependencies]
rand = "0.8.5"
amplify = { version = "4.0.0", features = ["proc_attr", "hex"] }
strict_encoding_test = { version = "2.0.0-alpha.2", path = "./test_helpers" }
[features]
default = [
"derive"
]
all = [
"float",
"derive",
"serde"
]
derive = [
"strict_encoding_derive"
]
float = [
"amplify/apfloat",
"half"
]
serde = [
"serde_crate",
"amplify/serde"
]
[package.metadata.docs.rs]
all-features = true
rustc-args = ["--cfg", "docsrs"]