[package]
edition = "2021"
rust-version = "1.75"
name = "dig-rpc-protocol"
version = "0.3.1"
build = false
include = [
"src/**/*.rs",
"tests/**/*.rs",
"Cargo.toml",
"README.md",
"SPEC.md",
"LICENSE*",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canonical DIG-node JSON-RPC protocol: request/response types, the method enum + tier classification, the error-code taxonomy, and an OpenRPC 1.2.6 document generator. The single source of truth both DIG node implementations depend on. Pure types — no I/O, no async, no server logic. (Formerly dig-rpc-types.)"
homepage = "https://github.com/DIG-Network/dig-rpc-protocol"
documentation = "https://docs.rs/dig-rpc-protocol"
readme = "README.md"
keywords = [
"dig-network",
"json-rpc",
"openrpc",
"wire-format",
"rpc",
]
categories = [
"cryptography::cryptocurrencies",
"api-bindings",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/DIG-Network/dig-rpc-protocol"
[features]
default = []
schema-export = ["dep:schemars"]
[lib]
name = "dig_rpc_protocol"
path = "src/lib.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[dependencies.schemars]
version = "0.8"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_repr]
version = "0.1"
[dev-dependencies]
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"