1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! warpline-core — a multi-tenant WebAssembly function runtime you embed in
//! your own app.
//!
//! Hold a [`Runtime`], [`publish`](Runtime::publish) components under
//! `(tenant, function)` names and [`invoke`](Runtime::invoke) them with
//! per-call [`Limits`]. Guests get a tenant-scoped [`KvStore`], logging and
//! allowlisted outbound HTTP; CPU (epoch ticks), memory, output size,
//! per-tenant concurrency and total memory are all capped, and every
//! invocation that reaches a guest is reported to a [`MeterSink`].
//!
//! - [`runtime`] — the [`Runtime`] facade, its config and builder.
//! - [`kv`] — the [`KvStore`] trait and the in-memory [`MemKv`].
//! - [`meter`] — [`Usage`] and the [`MeterSink`] trait.
//! - [`pg`] (feature `postgres`, on by default) — schema-isolated migrations,
//! bearer-token auth, tenant admin and a batching [`MeterSink`]. Nothing in
//! this crate reads environment variables or migrates implicitly.
//! - [`types`] — [`Limits`], name validation and config validators.
//!
//! For a complete integration (an axum app, a Rust guest, Postgres auth and
//! metering) see [`examples/storefront`](https://github.com/Bunty9/warpline/tree/main/examples/storefront).
pub use digest;
pub use ;
pub use ;
pub use ;
pub use GC_GRACE_PERIOD;
pub use ;
pub use ;
pub use Bytes;
pub use wasmtime;