# 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"
name = "mx-proto"
version = "0.1.0"
build = "build.rs"
include = [
    "Cargo.toml",
    "README.md",
    "build.rs",
    "examples/**/*.rs",
    "src/**/*.rs",
    "generated/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protobuf and gRPC bindings for MultiversX network protocols."
documentation = "https://docs.rs/mx-proto"
readme = "README.md"
keywords = [
    "multiversx",
    "protobuf",
    "grpc",
    "prost",
    "blockchain",
]
categories = [
    "encoding",
    "network-programming",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[features]
default = []
serde = [
    "dep:serde",
    "dep:serde_json",
    "dep:base64",
    "dep:hex",
    "dep:num-bigint",
]

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

[[example]]
name = "outport_decode"
path = "examples/outport_decode.rs"

[[example]]
name = "transaction_roundtrip"
path = "examples/transaction_roundtrip.rs"

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.bech32]
version = "0.11"

[dependencies.blake2]
version = "0.10.6"

[dependencies.hex]
version = "0.4.3"
optional = true

[dependencies.num-bigint]
version = "0.4.6"
optional = true

[dependencies.prost]
version = "0.14.1"

[dependencies.prost-types]
version = "0.14.1"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.148"
features = ["raw_value"]
optional = true

[dependencies.tonic]
version = "0.14.5"
features = ["transport"]

[dependencies.tonic-prost]
version = "0.14.5"

[dev-dependencies.hex]
version = "0.4.3"

[build-dependencies.prost-build]
version = "0.14.1"

[build-dependencies.protoc-bin-vendored]
version = "3.2.0"

[build-dependencies.regex]
version = "1.11.1"

[build-dependencies.serde_json]
version = "1.0.148"
features = ["raw_value"]

[build-dependencies.tonic-prost-build]
version = "0.14.5"

[lints.clippy]
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_sign_loss = "allow"
checked_conversions = "allow"
clone_on_ref_ptr = "allow"
cloned_instead_of_copied = "allow"
collection_is_never_read = "allow"
const_is_empty = "allow"
create_dir = "allow"
dbg_macro = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
enum_glob_use = "allow"
exit = "allow"
expect_used = "allow"
float_cmp_const = "allow"
fn_params_excessive_bools = "allow"
if_not_else = "allow"
implicit_clone = "allow"
inline_always = "allow"
items_after_statements = "allow"
iter_on_empty_collections = "allow"
large_types_passed_by_value = "allow"
manual_let_else = "allow"
match_bool = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
mem_forget = "allow"
missing_assert_message = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_inline_in_public_items = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mut_mut = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
option_option = "allow"
panic = "allow"
print_stderr = "allow"
print_stdout = "allow"
rc_mutex = "allow"
redundant_clone = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
redundant_pub_crate = "allow"
rest_pat_in_fully_bound_structs = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
str_to_string = "allow"
string_lit_as_bytes = "allow"
string_to_string = "allow"
struct_excessive_bools = "allow"
todo = "allow"
too_many_arguments = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
undocumented_unsafe_blocks = "allow"
unimplemented = "allow"
uninlined_format_args = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unwrap_used = "allow"
use_self = "allow"
useless_let_if_seq = "allow"
verbose_file_reads = "allow"
wildcard_imports = "allow"

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

[lints.clippy.complexity]
level = "deny"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "allow"
unreachable_pub = "allow"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"
unused_qualifications = "allow"
