[package]
edition = "2021"
rust-version = "1.88"
name = "blockchain-zc-parser"
version = "0.1.0"
build = false
include = [
"src/**",
"examples/**",
"benches/**",
"tests/**",
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy, allocation-free parser for Bitcoin/blockchain binary data"
homepage = "https://github.com/cppNexus/blockchain-zc-parser"
documentation = "https://docs.rs/blockchain-zc-parser"
readme = "README.md"
keywords = [
"blockchain",
"bitcoin",
"parser",
"zero-copy",
"no-alloc",
]
categories = [
"parser-implementations",
"cryptography::cryptocurrencies",
]
license = "Apache-2.0"
repository = "https://github.com/cppNexus/blockchain-zc-parser"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = ["std"]
serde = [
"std",
"dep:serde",
]
std = []
[lib]
name = "blockchain_zc_parser"
path = "src/lib.rs"
[[example]]
name = "parse_block"
path = "examples/parse_block.rs"
[[test]]
name = "integration_tests"
path = "tests/integration_tests.rs"
[[bench]]
name = "parser_bench"
path = "benches/parser_bench.rs"
harness = false
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false
[dependencies.sha2]
version = "0.10"
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]
[dev-dependencies.hex-literal]
version = "1.1.0"
[profile.bench]
debug = 2
inherits = "release"
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"