[package]
edition = "2024"
rust-version = "1.87"
name = "ocpp-client"
version = "0.3.0"
authors = ["Joatin Granlund <joatin@granlund.io>"]
build = false
exclude = [
".idea/",
".github/",
".editorconfig",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OCPP Client Implementation. Use this library to implement an OCPP charge point"
documentation = "https://docs.rs/ocpp-client"
readme = "README.md"
keywords = [
"ocpp",
"charge-point",
"ocpp16",
"ocpp201",
"ocpp21",
]
categories = [
"network-programming",
"embedded",
"no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/flowionab/ocpp-client"
[package.metadata.docs.rs]
all-features = true
[features]
default = [
"std",
"tokio-runtime",
"websocket",
"ocpp_1_6",
"ocpp_2_0_1",
"ocpp_2_1",
]
ocpp_1_6 = []
ocpp_2_0_1 = []
ocpp_2_1 = []
std = [
"critical-section/std",
"tracing/std",
]
test = []
tokio-runtime = [
"std",
"dep:tokio",
]
websocket = [
"tokio-runtime",
"dep:tokio-tungstenite",
"dep:futures",
"dep:url",
"dep:rustls",
"dep:base64",
]
[lib]
name = "ocpp_client"
path = "src/lib.rs"
[[example]]
name = "connect"
path = "examples/connect.rs"
[[test]]
name = "action_coverage"
path = "tests/action_coverage.rs"
[[test]]
name = "connect_negotiation"
path = "tests/connect_negotiation.rs"
[[test]]
name = "ocpp_1_6_bookkeeping"
path = "tests/ocpp_1_6_bookkeeping.rs"
[[test]]
name = "ocpp_1_6_custom_reconnector"
path = "tests/ocpp_1_6_custom_reconnector.rs"
[[test]]
name = "ocpp_1_6_custom_tls"
path = "tests/ocpp_1_6_custom_tls.rs"
[[test]]
name = "ocpp_1_6_disconnect"
path = "tests/ocpp_1_6_disconnect.rs"
[[test]]
name = "ocpp_1_6_fake_transport"
path = "tests/ocpp_1_6_fake_transport.rs"
[[test]]
name = "ocpp_1_6_keepalive"
path = "tests/ocpp_1_6_keepalive.rs"
[[test]]
name = "ocpp_1_6_logging"
path = "tests/ocpp_1_6_logging.rs"
[[test]]
name = "ocpp_1_6_mtls"
path = "tests/ocpp_1_6_mtls.rs"
[[test]]
name = "ocpp_1_6_on_reconnect"
path = "tests/ocpp_1_6_on_reconnect.rs"
[[test]]
name = "ocpp_1_6_reconnect"
path = "tests/ocpp_1_6_reconnect.rs"
[[test]]
name = "ocpp_1_6_reconnect_backoff"
path = "tests/ocpp_1_6_reconnect_backoff.rs"
[[test]]
name = "ocpp_1_6_wait_for"
path = "tests/ocpp_1_6_wait_for.rs"
[[test]]
name = "ocpp_1_6_websocket"
path = "tests/ocpp_1_6_websocket.rs"
[[test]]
name = "ocpp_1_6_websocket_keepalive"
path = "tests/ocpp_1_6_websocket_keepalive.rs"
[[test]]
name = "ocpp_2_0_1_fake_transport"
path = "tests/ocpp_2_0_1_fake_transport.rs"
[[test]]
name = "ocpp_2_0_1_websocket"
path = "tests/ocpp_2_0_1_websocket.rs"
[[test]]
name = "ocpp_2_1_fake_transport"
path = "tests/ocpp_2_1_fake_transport.rs"
[[test]]
name = "ocpp_2_1_websocket"
path = "tests/ocpp_2_1_websocket.rs"
[[bench]]
name = "call_roundtrip"
path = "benches/call_roundtrip.rs"
harness = false
[dependencies.base64]
version = "0.22"
optional = true
[dependencies.critical-section]
version = "1"
[dependencies.embassy-sync]
version = "0.8"
default-features = false
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.ocpp-types]
version = "0.1.3"
features = [
"serde",
"alloc",
]
default-features = false
[dependencies.rustls]
version = "0.23"
optional = true
[dependencies.serde]
version = "1"
features = [
"derive",
"alloc",
]
default-features = false
[dependencies.serde_json]
version = "1"
features = ["alloc"]
default-features = false
[dependencies.tokio]
version = "1"
features = [
"sync",
"rt",
"time",
]
optional = true
[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls-tls-webpki-roots"]
optional = true
[dependencies.tracing]
version = "0.1.44"
default-features = false
[dependencies.url]
version = "2.5"
optional = true
[dependencies.uuid]
version = "1"
features = ["v4"]
default-features = false
[dev-dependencies.chrono]
version = "^0.4"
features = ["now"]
default-features = false
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.rcgen]
version = "0.14.8"
features = [
"aws_lc_rs",
"pem",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tokio-rustls]
version = "0.26"
[dev-dependencies.tracing-test]
version = "0.2.6"
features = ["no-env-filter"]