use-astro 0.0.1

Astro framework metadata primitives for RustUse
Documentation
1
2
3
4
5
6
7
8
9
10
use use_astro::{AstroConfigFile, AstroIntegrationName, AstroRenderingMode};

fn main() -> Result<(), use_astro::AstroTextError> {
    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");
    Ok(())
}