# 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 = "ev3-drivebase"
version = "0.1.1"
build = false
include = [
    "src/**",
    "Cargo.toml",
    "Cargo.lock",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A DriveBase for the EV3"
readme = "README.md"
keywords = [
    "ev3",
    "robotics",
    "drivebase",
]
categories = [
    "api-bindings",
    "hardware-support",
]
license-file = "LICENSE"
repository = "https://github.com/Kingananas20/ev3dev-drivebase-rs"

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

[[bin]]
name = "ev3-drivebase"
path = "src/main.rs"

[dependencies.ev3dev-lang-rust]
version = "0.15.0"

[lints.clippy]
cargo = "deny"
complexity = "deny"
correctness = "deny"
nursery = "deny"
pedantic = "warn"
perf = "deny"
style = "deny"
suspicious = "deny"

[lints.clippy.allow_attributes]
level = "deny"
priority = 1

[lints.clippy.dbg_macro]
level = "warn"
priority = 1

[lints.clippy.expect_used]
level = "deny"
priority = 1

[lints.clippy.needless_pass_by_value]
level = "allow"
priority = 1

[lints.clippy.todo]
level = "warn"
priority = 1

[lints.clippy.unimplemented]
level = "warn"
priority = 1

[lints.clippy.unwrap_used]
level = "deny"
priority = 1

[lints.rust]
missing_debug_implementations = "deny"
missing_docs = "deny"
unreachable_patterns = "warn"
unsafe_code = "deny"
unused_must_use = "deny"

[profile.release]
opt-level = "z"
lto = true
strip = "symbols"
