simple_doip 0.6.0

An ISO 13400-2 (DoIP) implementation with a no_std, zero-copy protocol core and optional async client and server
Documentation
# 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"
name = "simple_doip"
version = "0.6.0"
build = false
exclude = [
    "docs/",
    ".github/",
    ".vscode/",
    "release-plz.toml",
    "rust-toolchain.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An ISO 13400-2 (DoIP) implementation with a no_std, zero-copy protocol core and optional async client and server"
readme = "README.md"
keywords = [
    "doip",
    "iso13400",
    "automotive",
    "diagnostics",
    "no-std",
]
categories = [
    "network-programming",
    "embedded",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/luminartech/simple_doip"

[package.metadata.docs.rs]
all-features = true

[features]
alloc = ["embedded-io/alloc"]
client = [
    "codec",
    "dep:async-trait",
    "dep:futures",
]
codec = [
    "std",
    "dep:tokio",
    "dep:tokio-util",
    "dep:bytes",
]
default = []
server = [
    "codec",
    "dep:async-trait",
    "dep:futures",
]
std = [
    "alloc",
    "embedded-io/std",
    "thiserror/std",
    "dep:tracing",
    "tracing/std",
]

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

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

[[example]]
name = "echo_server"
path = "examples/echo_server.rs"
required-features = ["server"]

[[example]]
name = "simple_client"
path = "examples/simple_client.rs"
required-features = ["client"]

[[test]]
name = "encode_consistency"
path = "tests/encode_consistency.rs"

[[test]]
name = "golden_vectors"
path = "tests/golden_vectors.rs"

[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
required-features = [
    "client",
    "server",
]

[[test]]
name = "nested_encode"
path = "tests/nested_encode.rs"

[[test]]
name = "property"
path = "tests/property.rs"

[[test]]
name = "udp_identification"
path = "tests/udp_identification.rs"
required-features = ["server"]

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

[dependencies.automotive-wire-codec]
version = "0.3"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.embedded-io]
version = "0.7"
default-features = false

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.strum]
version = "0.27"
features = ["derive"]
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "rt-multi-thread",
    "time",
]
optional = true

[dependencies.tokio-util]
version = "0.7"
features = [
    "net",
    "codec",
]
optional = true

[dependencies.tracing]
version = "0.1"
optional = true
default-features = false

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "io-util",
    "time",
]

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["fmt"]