#![deny(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(test)]
mod test;
pub mod key_value;
pub mod sqlite;
pub mod sqlite3;
pub mod llm;
pub use spin_macro::*;
#[cfg(feature = "wasip3-unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "wasip3-unstable")))]
pub mod http_wasip3 {
pub use spin_wasip3_http::*;
pub use spin_wasip3_http_macro::http_service;
}
#[doc(hidden)]
pub mod wit {
#![allow(missing_docs)]
wit_bindgen::generate!({
world: "platform",
path: "./wit",
with: {
"wasi:io/error@0.2.0": ::wasi::io::error,
"wasi:io/streams@0.2.0": ::wasi::io::streams,
"wasi:io/poll@0.2.0": ::wasi::io::poll,
},
generate_all,
});
pub use fermyon::spin2_0_0 as v2;
pub use spin::postgres3_0_0::postgres as pg3;
pub use spin::postgres4_0_0::postgres as pg4;
pub use spin::sqlite::sqlite as sqlite3;
}
#[export_name = concat!("spin-sdk-version-", env!("SDK_VERSION"))]
extern "C" fn __spin_sdk_version() {}
#[cfg(feature = "export-sdk-language")]
#[export_name = "spin-sdk-language-rust"]
extern "C" fn __spin_sdk_language() {}
#[export_name = concat!("spin-sdk-commit-", env!("SDK_COMMIT"))]
extern "C" fn __spin_sdk_hash() {}
pub mod http;
#[allow(missing_docs)]
pub mod mqtt;
#[allow(missing_docs)]
pub mod redis;
pub mod pg;
pub mod pg3;
pub mod pg4;
pub mod mysql;
pub mod variables;
#[doc(hidden)]
pub use wit_bindgen;