use-astro 0.0.1

Astro framework metadata primitives for RustUse
Documentation
  • Coverage
  • 36.73%
    18 out of 49 items documented1 out of 18 items with examples
  • Size
  • Source code size: 16.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-js
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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");
# Ok::<(), use_astro::AstroTextError>(())

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.