# 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.85"
name = "masterbus"
version = "0.3.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Idiomatic Rust client for the Mastervolt MasterBus CAN-bus protocol"
readme = "README.md"
keywords = [
    "mastervolt",
    "canbus",
    "nmea2000",
    "marine",
    "socketcan",
]
categories = [
    "embedded",
    "hardware-support",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/keesverruijt/masterbus"
resolver = "2"

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

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

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

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

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

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.log]
version = "0.4"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.env_logger]
version = "0.11"
features = [
    "auto-color",
    "humantime",
]
default-features = false

[target.'cfg(not(target_os = "linux"))'.dependencies.hidapi]
version = "2"

[target.'cfg(target_os = "linux")'.dependencies.hidapi]
version = "2"
features = ["linux-native-basic-udev"]
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.socketcan]
version = "3"
