Expand description
Deploy adapter trait + per-target stubs for the ssg deploy
subcommand (issue #527 AC4).
The legacy crate::deploy::DeployPlugin generates platform-specific
configuration files (netlify.toml, vercel.json, …) at build
time. This module is responsible for the upload half — taking a
freshly built site_dir and shipping it to the target platform.
Each adapter is a stub at the moment: it prints
"deploy adapter for <target>: not yet implemented; see #527" to
stderr and exits cleanly. The wiring and CLI surface are in place
so we can land the rest of the implementation behind it without
breaking the ssg deploy --target … API.
§Stability
Target is #[non_exhaustive] — new targets can be added in
minor releases. Downstream match arms must include a wildcard.
Structs§
- Cloudflare
Pages Adapter - Stub adapter for Cloudflare Pages.
- Github
Pages Adapter - Stub adapter for GitHub Pages.
- Netlify
Adapter - Stub adapter for Netlify.
- None
Adapter - No-op adapter — build only, no upload.
- S3Adapter
- Stub adapter for Amazon S3.
- Vercel
Adapter - Stub adapter for Vercel.
Enums§
- Target
- Deploy targets accepted by
ssg deploy --target <TARGET>.
Traits§
- Deploy
Adapter - Trait implemented by per-target deploy adapters.
Functions§
- adapter_
for - Returns the adapter implementation for a given
Target.