Skip to main content

Crate use_solid

Crate use_solid 

Source
Expand description

§use-solid

SolidJS metadata primitives for RustUse.

§Experimental

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

§Example

use use_solid::{SolidComponentName, SolidPrimitiveKind, SolidSignalName};

let component = SolidComponentName::new("CounterPanel")?;
let signal = SolidSignalName::new("count")?;

assert_eq!(component.as_str(), "CounterPanel");
assert_eq!(signal.as_str(), "count");
assert_eq!(SolidPrimitiveKind::Signal.as_str(), "signal");

§Scope

  • SolidJS component, signal, file-kind, primitive-kind, and JSX runtime metadata.
  • Lightweight component and signal name validation.

§Non-goals

  • Reactivity implementation.
  • JSX parsing.
  • Runtime behavior.

§License

Licensed under either Apache-2.0 or MIT.

Structs§

SolidComponentName
Validated SolidJS component name metadata.
SolidSignalName
Validated SolidJS signal name metadata.

Enums§

SolidFileKind
SolidJS file-kind labels.
SolidJsxRuntime
SolidJS JSX runtime labels.
SolidNameError
Error returned when SolidJS metadata is invalid.
SolidPrimitiveKind
SolidJS primitive-kind labels.