ocmf 0.2.0

Open Charge Metering Format (OCMF): signed EV-charging meter records parsed without disturbing the bytes the signature covers, verified across every algorithm the specification defines, and built and signed the same way
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 = "ocmf"
version = "0.2.0"
authors = ["hupe1980"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Open Charge Metering Format (OCMF): signed EV-charging meter records parsed without disturbing the bytes the signature covers, verified across every algorithm the specification defines, and built and signed the same way"
homepage = "https://hupe1980.github.io/ocmf"
documentation = "https://docs.rs/ocmf"
readme = "README.md"
keywords = [
    "ocmf",
    "eichrecht",
    "ev-charging",
    "metering",
    "ecdsa",
]
categories = [
    "parser-implementations",
    "cryptography",
    "no-std",
    "encoding",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hupe1980/ocmf"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
alloc = []
backend-openssl = [
    "std",
    "verify",
    "dep:openssl",
]
curve-bp256 = [
    "verify",
    "dep:bp256",
]
curve-bp384 = [
    "verify",
    "dep:bp384",
]
curve-k256 = [
    "verify",
    "dep:k256",
]
curve-p192 = [
    "verify",
    "dep:p192",
]
curve-p256 = [
    "verify",
    "dep:p256",
]
curve-p384 = [
    "verify",
    "dep:p384",
]
curves-pure = [
    "curve-p192",
    "curve-p256",
    "curve-p384",
    "curve-k256",
    "curve-bp256",
    "curve-bp384",
]
default = [
    "std",
    "verify",
    "sign",
    "session",
    "curve-p256",
]
digest = ["dep:sha2"]
full = [
    "std",
    "curves-pure",
    "sign",
    "session",
    "ocpp",
    "xml",
    "serde",
]
ocpp = ["alloc"]
serde = [
    "dep:serde",
    "serde/alloc",
    "alloc",
]
session = ["alloc"]
sign = ["verify"]
std = [
    "alloc",
    "rust_decimal/std",
    "thiserror/std",
    "serde?/std",
]
vendored-openssl = [
    "backend-openssl",
    "openssl/vendored",
]
verify = [
    "digest",
    "dep:ecdsa",
]
xml = [
    "std",
    "dep:quick-xml",
]

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

[[example]]
name = "sign_record"
path = "examples/sign_record.rs"
required-features = [
    "std",
    "sign",
    "curve-p256",
]

[[example]]
name = "verify_record"
path = "examples/verify_record.rs"
required-features = [
    "std",
    "verify",
    "curve-p256",
]

[[test]]
name = "conformance"
path = "tests/conformance.rs"
required-features = ["std"]

[[test]]
name = "corpus"
path = "tests/corpus.rs"
required-features = ["std"]

[[test]]
name = "properties"
path = "tests/properties.rs"
required-features = [
    "sign",
    "curve-p256",
]

[[test]]
name = "vectors"
path = "tests/vectors.rs"
required-features = ["std"]

[[bench]]
name = "parse"
path = "benches/parse.rs"
harness = false
required-features = [
    "std",
    "verify",
    "curve-p256",
]

[dependencies.bp256]
version = "0.14"
features = [
    "arithmetic",
    "ecdsa",
    "sha256",
]
optional = true
default-features = false

[dependencies.bp384]
version = "0.14"
features = [
    "arithmetic",
    "ecdsa",
    "sha384",
]
optional = true
default-features = false

[dependencies.ecdsa]
version = "0.17"
optional = true
default-features = false

[dependencies.k256]
version = "0.14"
features = ["ecdsa"]
optional = true
default-features = false

[dependencies.openssl]
version = "0.10"
optional = true

[dependencies.p192]
version = "=0.14.0-rc.15"
features = ["ecdsa"]
optional = true
default-features = false

[dependencies.p256]
version = "0.14"
features = ["ecdsa"]
optional = true
default-features = false

[dependencies.p384]
version = "0.14"
features = ["ecdsa"]
optional = true
default-features = false

[dependencies.quick-xml]
version = "0.42"
optional = true

[dependencies.rust_decimal]
version = "1.43"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.sha2]
version = "0.11"
optional = true
default-features = false

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

[dev-dependencies.divan]
version = "0.1"

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

[dev-dependencies.rust_decimal]
version = "1.43"
features = [
    "std",
    "macros",
]
default-features = false

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

[lints.clippy]
cast_possible_truncation = "warn"
float_arithmetic = "deny"
module_name_repetitions = "allow"

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

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