# 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 = "docan"
version = "0.1.0-b1"
authors = ["Jesse Smith <jesses2025smith@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A DoCAN protocol."
homepage = "https://github.com/jesses2025smith/docan-rs"
readme = "README.md"
keywords = [
    "automotive",
    "UDS",
    "DoCAN",
]
license = "MIT OR GPL-3.0"
repository = "https://github.com/jesses2025smith/docan-rs"

[features]
client = [
    "iso15765-2/can",
    "iso15765-2/std2004",
]
default = [
    "std2020",
    "client",
]
server = [
    "iso15765-2/can",
    "iso15765-2/std2004",
]
std2006 = ["iso14229-1/std2006"]
std2013 = ["iso14229-1/std2013"]
std2020 = ["iso14229-1/std2020"]

[lib]
name = "docan_rs"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

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

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

[dependencies.async-trait]
version = "0.1"

[dependencies.iso14229-1]
version = "0.1.0-b1"
optional = true
default-features = false

[dependencies.iso15765-2]
version = "0.1.0-b1"
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.rs-can]
version = "0.3.0-b0"

[dependencies.rsutil]
version = "0.1"
features = [
    "log",
    "types",
]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["time"]

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.socketcan-rs]
version = "0.3.0-b0"

[dev-dependencies.tokio]
version = "1.40.0"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tokio-stream]
version = "0.1"
