[package]
edition = "2021"
rust-version = "1.75"
name = "canlink-hal"
version = "0.3.2"
authors = ["CANLink-RS Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hardware abstraction layer for CAN bus interfaces"
readme = "README.md"
keywords = [
"can",
"canfd",
"automotive",
"embedded",
"hal",
]
categories = [
"embedded",
"hardware-support",
"api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/iamsevens/canlink-rs"
[features]
async = []
async-async-std = [
"async",
"async-std",
]
async-tokio = [
"async",
"tokio",
]
default = []
full = [
"async-tokio",
"tracing",
"hot-reload",
"periodic",
"isotp",
]
hot-reload = ["dep:notify"]
isotp = ["async-tokio"]
periodic = ["async-tokio"]
tracing = ["dep:tracing"]
[lib]
name = "canlink_hal"
path = "src/lib.rs"
[[example]]
name = "async_usage"
path = "examples/async_usage.rs"
required-features = ["async-tokio"]
[[example]]
name = "automated_testing"
path = "examples/automated_testing.rs"
[[example]]
name = "backend_switching"
path = "examples/backend_switching.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "capability_adaptation"
path = "examples/capability_adaptation.rs"
[[example]]
name = "capability_query"
path = "examples/capability_query.rs"
[[example]]
name = "connection_monitor"
path = "examples/connection_monitor.rs"
[[example]]
name = "filter_config"
path = "examples/filter_config.rs"
[[example]]
name = "hot_reload"
path = "examples/hot_reload.rs"
required-features = ["hot-reload"]
[[example]]
name = "isotp_transfer"
path = "examples/isotp_transfer.rs"
required-features = ["isotp"]
[[example]]
name = "message_filtering"
path = "examples/message_filtering.rs"
[[example]]
name = "mock_testing"
path = "examples/mock_testing.rs"
[[example]]
name = "periodic_send"
path = "examples/periodic_send.rs"
required-features = ["periodic"]
[[example]]
name = "queue_overflow"
path = "examples/queue_overflow.rs"
[[test]]
name = "async_test"
path = "tests/async_test.rs"
[[test]]
name = "backend_switching_e2e_test"
path = "tests/backend_switching_e2e_test.rs"
[[test]]
name = "backend_switching_test"
path = "tests/integration/backend_switching_test.rs"
[[test]]
name = "backend_trait_test"
path = "tests/backend_trait_test.rs"
[[test]]
name = "bounded_test"
path = "tests/bounded_test.rs"
[[test]]
name = "capability_adaptation_test"
path = "tests/capability_adaptation_test.rs"
[[test]]
name = "capability_test"
path = "tests/capability_test.rs"
[[test]]
name = "chain_test"
path = "tests/chain_test.rs"
[[test]]
name = "connection_test"
path = "tests/connection_test.rs"
[[test]]
name = "filter_integration_test"
path = "tests/filter_integration_test.rs"
[[test]]
name = "id_filter_test"
path = "tests/id_filter_test.rs"
[[test]]
name = "isotp_tests"
path = "tests/isotp_tests.rs"
[[test]]
name = "memory_stability_test"
path = "tests/memory_stability_test.rs"
[[test]]
name = "mock_testing_test"
path = "tests/integration/mock_testing_test.rs"
[[test]]
name = "periodic_tests"
path = "tests/periodic_tests.rs"
[[test]]
name = "policy_test"
path = "tests/policy_test.rs"
[[test]]
name = "range_filter_test"
path = "tests/range_filter_test.rs"
[[test]]
name = "robustness_test"
path = "tests/robustness_test.rs"
[[bench]]
name = "async_bench"
path = "benches/async_bench.rs"
harness = false
required-features = ["async-tokio"]
[[bench]]
name = "capability_bench"
path = "benches/capability_bench.rs"
harness = false
[[bench]]
name = "filter_bench"
path = "benches/filter_bench.rs"
harness = false
[[bench]]
name = "performance_bench"
path = "benches/performance_bench.rs"
harness = false
[[bench]]
name = "queue_bench"
path = "benches/queue_bench.rs"
harness = false
[dependencies.async-std]
version = "1.12"
optional = true
[dependencies.bitflags]
version = "2.4"
[dependencies.indexmap]
version = "2.0"
[dependencies.notify]
version = "6.1"
optional = true
[dependencies.semver]
version = "1.0"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.thiserror]
version = "1.0"
[dependencies.tokio]
version = "1.35"
features = ["full"]
optional = true
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.tempfile]
version = "3.10"
[dev-dependencies.tokio]
version = "1.35"
features = [
"full",
"rt-multi-thread",
"macros",
"time",
"sync",
"test-util",
]