Documentation
// Copyright (c) 2026, Salesforce, Inc.,
// All rights reserved.
// For full license text, see the LICENSE.txt file

//! PDK Core
//!
//! This crate contains functionality that is specific for Flex Gateway.
//! It does not apply for all proxy_wasm hosts.

pub use classy;
pub(crate) use classy::DefaultHost as Host;
pub(crate) use classy::Host as HostTrait;
pub use pdk_macros::entrypoint;

pub use crate::log as logger;

mod middleware;

#[allow(dead_code)]
mod bindings;
pub mod client;
pub mod host;
pub mod init;
pub mod log;
pub mod policy_context;

#[cfg(fips)]
pub mod ffi {
    pub use protobuf::Error as ProtobufError;
    pub use protobuf::Message;

    mod private {
        include!(concat!(env!("OUT_DIR"), "/protos/mod.rs"));
    }

    pub use private::verify_signature::*;
}