[package]
edition = "2021"
name = "chia-protocol"
version = "0.35.2"
authors = ["Arvid Norberg <arvid@chia.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Chia network protocol message types"
homepage = "https://github.com/Chia-Network/chia_rs"
readme = false
license = "Apache-2.0"
repository = "https://github.com/Chia-Network/chia_rs"
[package.metadata.cargo-machete]
ignored = "seder_arrays"
[features]
arbitrary = [
"dep:arbitrary",
"chia-bls/arbitrary",
]
py-bindings = [
"dep:pyo3",
"dep:chia_py_streamable_macro",
"chia-traits/py-bindings",
"chia-bls/py-bindings",
]
serde = [
"dep:serde",
"dep:chia-serde",
"chia-bls/serde",
"dep:serde_arrays",
]
[lib]
name = "chia_protocol"
crate-type = ["rlib"]
path = "src/lib.rs"
[dependencies.arbitrary]
version = "1.4.1"
features = ["derive"]
optional = true
[dependencies.chia-bls]
version = "0.35.0"
[dependencies.chia-serde]
version = "0.35.0"
optional = true
[dependencies.chia-sha2]
version = "0.35.0"
[dependencies.chia-traits]
version = "0.35.0"
[dependencies.chia_py_streamable_macro]
version = "0.35.0"
optional = true
[dependencies.chia_streamable_macro]
version = "0.35.0"
[dependencies.clvm-traits]
version = "0.35.0"
features = ["derive"]
[dependencies.clvm-utils]
version = "0.35.0"
[dependencies.clvmr]
version = "0.16.4"
[dependencies.hex]
version = "0.4.3"
[dependencies.pyo3]
version = "0.27.1"
features = [
"multiple-pymethods",
"num-bigint",
]
optional = true
[dependencies.serde]
version = "1.0.219"
features = ["derive"]
optional = true
[dependencies.serde_arrays]
version = "0.2.0"
optional = true
[dev-dependencies.anyhow]
version = "1.0.97"
[dev-dependencies.indoc]
version = "2.0.6"
[dev-dependencies.rstest]
version = "0.22.0"
[dev-dependencies.serde_json]
version = "1.0.140"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
implicit_hasher = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
similar_names = "allow"
too_many_lines = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
dead_code = "deny"
deprecated = "deny"
deprecated_in_future = "deny"
non_ascii_idents = "deny"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_code = "deny"
unreachable_patterns = "deny"
unsafe_code = "deny"
unused_import_braces = "deny"
unused_imports = "warn"
[lints.rust.future_incompatible]
level = "deny"
priority = -1
[lints.rust.nonstandard_style]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1
[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1