ocpp-client 0.2.0

OCPP Client Implementation. Use this library to implement an OCPP charge point
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"
name = "ocpp-client"
version = "0.2.0"
authors = ["Joatin Granlund <joatin@granlund.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OCPP Client Implementation. Use this library to implement an OCPP charge point"
readme = "README.md"
keywords = [
    "OCPP",
    "ChargePoint",
    "Client",
    "ocpp16",
    "ocpp201",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/flowionab/ocpp-client"

[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 = "connect_negotiation"
path = "tests/connect_negotiation.rs"

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

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

[[test]]
name = "ocpp_1_6_logging"
path = "tests/ocpp_1_6_logging.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_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_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"

[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.2"
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.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"]