Expand description
§wasm-smtp-component
WASM Component Model interface for wasm-smtp.
This crate exports the smtp-send WIT interface defined in
wit/smtp.wit, allowing any language with WIT bindings to send email
through wasm-smtp without writing Rust.
§Building
# Requires cargo-component and the wasm32-wasip2 target.
cargo component build --target wasm32-wasip2 -p wasm-smtp-component
# Output: target/wasm32-wasip2/debug/wasm_smtp_component.wasm§Running tests on native
cargo test -p wasm-smtp-component§Credential security
Credentials cross the host-component boundary as plain WIT strings on
every send call. They are not retained by the component between calls.
See docs/src/adapters/component-model.md for the full threat model.
Structs§
- Smtp
Send Impl - The struct that implements the
smtp-sendWIT interface.