# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95"
name = "makechain-proto"
version = "0.1.1"
authors = ["Official Unofficial, Inc."]
build = "build.rs"
include = [
    "build.rs",
    "src/**/*",
    "proto/makechain.proto",
    "README.md",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protobuf types and gRPC stubs for the Makechain protocol (buffa + connectrpc)"
readme = "README.md"
keywords = [
    "makechain",
    "protobuf",
    "grpc",
    "connectrpc",
]
categories = [
    "network-programming",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/officialunofficial/makechain"

[features]
arbitrary = [
    "dep:arbitrary",
    "buffa/arbitrary",
    "buffa-types/arbitrary",
]
test-util = []

[lib]
name = "makechain_proto"
path = "src/lib.rs"

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.buffa]
version = "0.8.1"
features = [
    "std",
    "json",
]

[dependencies.buffa-descriptor]
version = "0.8"
features = [
    "reflect",
    "std",
]

[dependencies.buffa-types]
version = "0.8"
features = [
    "std",
    "json",
]

[dependencies.bytes]
version = "1"

[dependencies.commonware-codec]
version = "2026.5"

[dependencies.connectrpc]
version = "0.8"
features = [
    "client",
    "server",
    "axum",
]

[dependencies.connectrpc-reflection]
version = "0.8"

[dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies]

[build-dependencies.buffa-codegen]
version = "0.8"

[build-dependencies.connectrpc-build]
version = "0.8"

[lints.clippy]
assigning_clones = "allow"
case_sensitive_file_extension_comparisons = "allow"
dbg_macro = "deny"
default_trait_access = "allow"
doc_lazy_continuation = "allow"
format_collect = "allow"
format_push_string = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
needless_continue = "allow"
needless_pass_by_value = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_field_names = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_wraps = "allow"
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(generate_conformance_tests)"]

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
private_intra_doc_links = "warn"
