#![deny(missing_docs)]
pub mod key_value;
pub mod sqlite;
pub mod llm;
pub use spin_macro::*;
#[doc(hidden)]
pub mod wit {
#![allow(missing_docs)]
wit_bindgen::generate!({
world: "platform",
path: "./wit-2023-10-18",
});
pub use fermyon::spin2_0_0 as v2;
}
#[cfg(target_arch = "wasm32")]
#[doc(hidden)]
pub use wit::__link_section;
#[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 redis {
use std::hash::{Hash, Hasher};
pub use super::wit::v2::redis::{Connection, Error, Payload, RedisParameter, RedisResult};
impl PartialEq for RedisResult {
fn eq(&self, other: &Self) -> bool {
use RedisResult::*;
match (self, other) {
(Nil, Nil) => true,
(Status(a), Status(b)) => a == b,
(Int64(a), Int64(b)) => a == b,
(Binary(a), Binary(b)) => a == b,
_ => false,
}
}
}
impl Eq for RedisResult {}
impl Hash for RedisResult {
fn hash<H: Hasher>(&self, state: &mut H) {
use RedisResult::*;
match self {
Nil => (),
Status(s) => s.hash(state),
Int64(v) => v.hash(state),
Binary(v) => v.hash(state),
}
}
}
}
pub mod pg;
pub mod mysql;
#[doc(inline)]
pub use wit::v2::variables;
#[doc(hidden)]
pub use wit_bindgen;