Skip to main content

Module deploy_adapter

Module deploy_adapter 

Source
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§

CloudflarePagesAdapter
Stub adapter for Cloudflare Pages.
GithubPagesAdapter
Stub adapter for GitHub Pages.
NetlifyAdapter
Stub adapter for Netlify.
NoneAdapter
No-op adapter — build only, no upload.
S3Adapter
Stub adapter for Amazon S3.
VercelAdapter
Stub adapter for Vercel.

Enums§

Target
Deploy targets accepted by ssg deploy --target <TARGET>.

Traits§

DeployAdapter
Trait implemented by per-target deploy adapters.

Functions§

adapter_for
Returns the adapter implementation for a given Target.