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;
16pub mod decode;
17pub mod engine;
18pub mod message;
19pub mod rpc;
20pub mod standard;
21#[cfg(feature = "station")]
22pub mod station;
23#[cfg(feature = "testkit")]
24pub mod testkit;
25#[cfg(feature = "tokio")]
26pub mod transport;
27pub mod types;
28pub mod validate;
29pub mod version;
30
31#[cfg(feature = "v1_6")]
32pub mod v1_6;
33#[cfg(feature = "v2_0_1")]
34pub mod v2_0_1;
35#[cfg(feature = "v2_1")]
36pub mod v2_1;
37
38pub use version::{Subprotocol, Version};
39
40/// An unparsed JSON value.
41///
42/// Re-exported from `serde_json` so payloads can be handled without adding a `serde_json`
43/// dependency of your own — and, more importantly, without the risk of linking a *different*
44/// `serde_json` than this crate did.
45pub use serde_json::value::RawValue;
46
47/// The version of this crate.
48pub const VERSION: &str = env!("CARGO_PKG_VERSION");