1#![deny(missing_docs)]
4
5#[cfg(test)]
6mod test;
7
8pub mod key_value;
10
11pub mod sqlite;
13
14pub mod llm;
16
17pub use spin_macro::*;
19
20#[doc(hidden)]
21pub mod wit {
25 #![allow(missing_docs)]
26
27 wit_bindgen::generate!({
28 world: "platform",
29 path: "./wit",
30 with: {
31 "wasi:io/error@0.2.0": spin_executor::bindings::wasi::io::error,
32 "wasi:io/streams@0.2.0": spin_executor::bindings::wasi::io::streams,
33 "wasi:io/poll@0.2.0": spin_executor::bindings::wasi::io::poll,
34 }
35 });
36 pub use fermyon::spin2_0_0 as v2;
37 pub use spin::postgres::postgres as pg3;
38}
39
40#[cfg(target_arch = "wasm32")]
44#[doc(hidden)]
45pub use wit::__link_section;
46
47#[export_name = concat!("spin-sdk-version-", env!("SDK_VERSION"))]
48extern "C" fn __spin_sdk_version() {}
49
50#[cfg(feature = "export-sdk-language")]
51#[export_name = "spin-sdk-language-rust"]
52extern "C" fn __spin_sdk_language() {}
53
54#[export_name = concat!("spin-sdk-commit-", env!("SDK_COMMIT"))]
55extern "C" fn __spin_sdk_hash() {}
56
57pub mod http;
59
60#[allow(missing_docs)]
61pub mod mqtt;
62
63#[allow(missing_docs)]
64pub mod redis;
65
66pub mod pg;
67
68pub mod pg3;
69
70pub mod mysql;
71
72pub mod variables;
73
74#[doc(hidden)]
75pub use wit_bindgen;