Expand description
Common types bundled for use tfparser_core::prelude::*;.
Lives next to but separate from the crate root re-exports so consumers
can opt in to the broader names without having to spell each import.
The included items are deliberately narrow: the façade (Parser,
parse), the workspace IR core (Workspace, Component,
Resource, Module), the error contract (Result, Error),
and the diagnostic / exporter shapes that anyone consuming the parquet
tables will eventually need.
If you want the lower-level building blocks (pipeline trait, evaluator, terragrunt resolver, …) reach into the module that owns them.
use tfparser_core::prelude::*;
let workspace: Workspace = parse("./my-tf-repo")?;
println!("{} components", workspace.components.len());Re-exports§
pub use crate::Component;pub use crate::Diagnostic;pub use crate::Error;pub use crate::ExportOptions;pub use crate::ExportReport;pub use crate::Exporter;pub use crate::Module;pub use crate::ParquetExporter;pub use crate::Parser;pub use crate::ParserBuilder;pub use crate::Resource;pub use crate::Result;pub use crate::Severity;pub use crate::Workspace;pub use crate::parse;