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