Skip to main content

astro_basic_usage/
basic_usage.rs

1use use_astro::{AstroConfigFile, AstroIntegrationName, AstroRenderingMode};
2
3fn main() -> Result<(), use_astro::AstroTextError> {
4    let integration = AstroIntegrationName::new("@astrojs/mdx")?;
5
6    assert_eq!(integration.as_str(), "@astrojs/mdx");
7    assert_eq!(AstroRenderingMode::Hybrid.as_str(), "hybrid");
8    assert_eq!(AstroConfigFile::AstroConfigTs.as_str(), "astro.config.ts");
9    Ok(())
10}