alien_core/import/mod.rs
1//! Typed setup import contract.
2//!
3//! `alien-core` owns the request shape every CloudFormation / Terraform /
4//! Helm generator and every importer (manager-side or agent-side) speaks:
5//!
6//! * [`data`] — typed `Aws*ImportData` / `Gcp*ImportData` / `Azure*ImportData`
7//! structs. Pure data + JsonSchema, camelCase serde. The payload that
8//! crosses crate boundaries.
9//! * [`request`] — [`StackImportRequest`] / [`ImportedResource`] /
10//! [`StackImportResponse`] / [`ImportSourceKind`]. The HTTP request /
11//! response types of `POST /v1/stack/import`.
12//! * [`context`] — [`EmitContext`] / [`ImportContext`]. Pure data passed
13//! through to format emitters and to importers respectively.
14//! * [`importer`] — [`ResourceImporter`], the trait every importer implements.
15//!
16//! Format-specific traits, registries, and emitters live in their respective
17//! format crates:
18//!
19//! * `alien_cloudformation::CfEmitter` + `CfRegistry` (also owns
20//! `CfResource` / `CfExpression`).
21//! * `alien_terraform::TfEmitter` + `TfRegistry` (returns `hcl::Block` /
22//! `hcl::Expression` directly — no intermediate IR).
23//! * `alien_helm::HelmEmitter` + `HelmRegistry`.
24//!
25//! Alien's importers and `alien_infra::ImporterRegistry` live in
26//! `alien-infra`, which re-exports [`ResourceImporter`].
27//!
28//! This split keeps `alien-core` lightweight (no format dependencies) and
29//! lets each format crate use its native types without an intermediate IR.
30
31pub mod context;
32pub mod data;
33pub mod importer;
34pub mod request;
35
36pub use context::*;
37pub use data::*;
38pub use importer::*;
39pub use request::*;