pdk_core/
lib.rs

1// Copyright (c) 2025, Salesforce, Inc.,
2// All rights reserved.
3// For full license text, see the LICENSE.txt file
4
5//! PDK Core
6//!
7//! This crate contains functionality that is specific for Flex Gateway.
8//! It does not apply for all proxy_wasm hosts.
9
10pub use classy;
11pub(crate) use classy::DefaultHost as Host;
12pub(crate) use classy::Host as HostTrait;
13pub use pdk_macros::entrypoint;
14
15pub use crate::log as logger;
16
17mod middleware;
18
19#[allow(dead_code)]
20mod bindings;
21pub mod client;
22pub mod host;
23pub mod init;
24pub mod log;
25pub mod policy_context;
26
27#[cfg(fips)]
28pub mod ffi {
29    pub use protobuf::Error as ProtobufError;
30    pub use protobuf::Message;
31
32    mod private {
33        include!(concat!(env!("OUT_DIR"), "/protos/mod.rs"));
34    }
35
36    pub use private::verify_signature::*;
37}