Expand description
§use-astro
Astro framework metadata primitives for RustUse.
§Experimental
use-astro is experimental while use-js remains below 0.3.0.
§Example
use use_astro::{AstroConfigFile, AstroIntegrationName, AstroRenderingMode};
let integration = AstroIntegrationName::new("@astrojs/mdx")?;
assert_eq!(integration.as_str(), "@astrojs/mdx");
assert_eq!(AstroRenderingMode::Hybrid.as_str(), "hybrid");
assert_eq!(AstroConfigFile::AstroConfigTs.as_str(), "astro.config.ts");§Scope
- Astro version-family, file-kind, directory-kind, rendering-mode, and config-file labels.
- Lightweight integration and content collection name validation.
§Non-goals
- Astro runtime behavior.
- MDX parsing.
- Content collections or routing semantics.
- Build or adapter behavior.
§License
Licensed under either Apache-2.0 or MIT.
Structs§
- Astro
Content Collection Name - Validated Astro content collection name metadata.
- Astro
Integration Name - Validated Astro integration name metadata.
Enums§
- Astro
Config File - Common Astro config file labels.
- Astro
Directory Kind - Astro directory labels.
- Astro
File Kind - Astro file-kind labels.
- Astro
Rendering Mode - Astro rendering mode labels.
- Astro
Text Error - Error returned when Astro metadata text is invalid.
- Astro
Version Family - Astro version-family labels.