# 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 = "taktora-connector-codec"
version = "0.1.5"
authors = ["Patrick Dahlke"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PayloadCodec implementations for the taktora-connector framework. Realises BB_0003 (JsonCodec behind default-on `json` feature)."
homepage = "https://taktora.eu"
readme = "README.md"
keywords = [
    "iceoryx2",
    "ipc",
    "realtime",
    "robotics",
    "ethercat",
]
categories = [
    "embedded",
    "concurrency",
    "network-programming",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/patdhlk/taktora"
resolver = "2"

[features]
default = ["json"]
json = ["dep:serde_json"]

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

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

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

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

[dependencies.serde]
version = "1"
features = ["std"]
default-features = false

[dependencies.serde_json]
version = "1"
features = ["std"]
optional = true
default-features = false

[dependencies.taktora-connector-core]
version = "0.2.4"

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

[dev-dependencies.serde]
version = "1"
features = [
    "std",
    "derive",
]
default-features = false

[dev-dependencies.serde_json]
version = "1"
features = ["std"]
default-features = false

[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
