Skip to main content

ocpp_kit/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![forbid(unsafe_code)]
3#![doc = include_str!("lib.md")]
4
5extern crate alloc;
6
7#[cfg(feature = "std")]
8extern crate std;
9
10#[macro_use]
11mod macros;
12
13pub mod actions;
14#[cfg(feature = "csms")]
15pub mod csms;
16mod decimal;
17pub mod decode;
18pub mod engine;
19pub mod message;
20pub mod metering;
21pub mod rpc;
22pub mod standard;
23#[cfg(feature = "station")]
24pub mod station;
25#[cfg(feature = "testkit")]
26pub mod testkit;
27#[cfg(feature = "tokio")]
28pub mod transport;
29pub mod types;
30pub mod validate;
31pub mod version;
32
33#[cfg(feature = "v1_6")]
34pub mod v1_6;
35#[cfg(feature = "v2_0_1")]
36pub mod v2_0_1;
37#[cfg(feature = "v2_1")]
38pub mod v2_1;
39
40pub use version::{Subprotocol, Version};
41
42/// An unparsed JSON value.
43///
44/// Re-exported from `serde_json` so payloads can be handled without adding a `serde_json`
45/// dependency of your own — and, more importantly, without the risk of linking a *different*
46/// `serde_json` than this crate did.
47pub use serde_json::value::RawValue;
48
49/// The version of this crate.
50pub const VERSION: &str = env!("CARGO_PKG_VERSION");