# 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 = "2021"
name = "dropshot_endpoint"
version = "0.16.6"
authors = ["Adam H. Leventhal <ahl@oxide.computer>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "macro used by dropshot consumers for registering handlers"
readme = false
license = "Apache-2.0"
repository = "https://github.com/oxidecomputer/dropshot/"

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

[dependencies.heck]
version = "0.5.0"

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

[dependencies.quote]
version = "1"

[dependencies.semver]
version = "1.0.27"

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

[dependencies.serde_tokenstream]
version = "0.2.2"

[dependencies.syn]
version = "2.0.111"
features = [
    "full",
    "visit",
    "extra-traits",
]

[dev-dependencies.expectorate]
version = "1.2.0"

[dev-dependencies.prettyplease]
version = "0.2.37"

[dev-dependencies.schema]
version = "0.1.0"

[lints.clippy]
cast_lossless = "warn"
declare_interior_mutable_const = "warn"
disallowed_macros = "warn"
disallowed_methods = "warn"
disallowed_names = "warn"
disallowed_script_idents = "warn"
disallowed_types = "warn"
iter_cloned_collect = "warn"
iter_next_slice = "warn"
iter_nth = "warn"
iter_nth_zero = "warn"
iter_skip_next = "warn"
len_zero = "warn"
redundant_field_names = "warn"

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

[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = [
    "cfg(usdt_need_asm)",
    "cfg(usdt_need_asm_sym)",
]
