# 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.0"
name = "aptos-sdk-macros"
version = "0.3.0"
authors = ["Aptos Labs <opensource@aptoslabs.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Procedural macros for type-safe Aptos contract bindings"
homepage = "https://aptoslabs.com"
readme = "README.md"
keywords = [
    "aptos",
    "blockchain",
    "macros",
    "codegen",
    "web3",
]
categories = [
    "cryptography",
    "development-tools::procedural-macro-helpers",
]
license = "Apache-2.0"
repository = "https://github.com/aptos-labs/aptos-rust-sdk"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]
targets = ["x86_64-unknown-linux-gnu"]

[lib]
name = "aptos_sdk_macros"
path = "src/lib.rs"
proc-macro = true

[[test]]
name = "trybuild"
path = "tests/trybuild.rs"

[dependencies.proc-macro2]
version = "1.0.94"

[dependencies.quote]
version = "1.0.40"

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

[dependencies.serde_json]
version = "1.0.140"
features = [
    "preserve_order",
    "arbitrary_precision",
]

[dependencies.syn]
version = "2.0"
features = [
    "full",
    "parsing",
]

[dev-dependencies.tokio]
version = "1.44.1"
features = [
    "macros",
    "full",
    "test-util",
]

[dev-dependencies.trybuild]
version = "1.0.104"

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
doc_markdown = "allow"
ignore_without_reason = "allow"
items_after_statements = "allow"
large_futures = "allow"
match_same_arms = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
unbuffered_bytes = "allow"
unreadable_literal = "allow"
unused_async = "allow"
used_underscore_binding = "allow"

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

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
