Skip to main content

Crate use_qwik

Crate use_qwik 

Source
Expand description

§use-qwik

Qwik metadata primitives for RustUse.

§Experimental

use-qwik is experimental while use-js remains below 0.3.0.

§Example

use use_qwik::{QwikCityRouteKind, QwikComponentName, QwikOptimizerMode};

let component = QwikComponentName::new("HeroPanel")?;

assert_eq!(component.as_str(), "HeroPanel");
assert_eq!(QwikOptimizerMode::Production.as_str(), "production");
assert_eq!(QwikCityRouteKind::Endpoint.as_str(), "endpoint");

§Scope

  • Qwik component, file-kind, directory-kind, optimizer-mode, route-kind, and config-file labels.
  • Lightweight component name validation.

§Non-goals

  • Resumability implementation.
  • Optimizer behavior.
  • Routing or build logic.

§License

Licensed under either Apache-2.0 or MIT.

Structs§

QwikComponentName
Validated Qwik component name metadata.

Enums§

QwikCityRouteKind
Qwik City route-kind labels.
QwikConfigFile
Common Qwik config file labels.
QwikDirectoryKind
Qwik directory labels.
QwikFileKind
Qwik file-kind labels.
QwikNameError
Error returned when Qwik metadata is invalid.
QwikOptimizerMode
Qwik optimizer mode labels.