# 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.88.0"
name = "aeronet"
version = "0.20.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low-level networking for Bevy"
readme = "README.md"
keywords = [
    "bevy",
    "gamedev",
    "network",
]
categories = [
    "game-development",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aecsocket/aeronet"

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

[features]
default = ["std"]
document-features = [
    "aeronet_transport/document-features",
    "dep:document-features",
]
std = ["aeronet_transport/std"]
visualizer = [
    "aeronet_transport/visualizer",
    "std",
]

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

[dependencies.aeronet_io]
version = "0.20.0"
default-features = false

[dependencies.aeronet_transport]
version = "0.20.0"
default-features = false

[dependencies.bevy_app]
version = "0.18.0"
default-features = false

[dependencies.document-features]
version = "0.2.11"
optional = true

[lints.clippy]
alloc_instead_of_core = "warn"
module_name_repetitions = "allow"
needless_pass_by_value = "allow"
similar_names = "allow"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
too_many_arguments = "allow"
type_complexity = "allow"
unwrap_used = "warn"

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

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

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

[lints.rust]
missing_docs = "warn"

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