use-lit 0.0.1

Lit web component metadata primitives for RustUse
Documentation
  • Coverage
  • 46.88%
    15 out of 32 items documented1 out of 15 items with examples
  • Size
  • Source code size: 14.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 819.63 kB 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-lit

Lit web component metadata primitives for RustUse.

Experimental

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

Example

use use_lit::{LitElementName, LitPropertyName, LitTemplateKind};

let element = LitElementName::new("app-shell")?;
let property = LitPropertyName::new("isOpen")?;

assert_eq!(element.as_str(), "app-shell");
assert_eq!(property.as_str(), "isOpen");
assert_eq!(LitTemplateKind::Html.as_str(), "html");
# Ok::<(), use_lit::LitNameError>(())

Scope

  • Lit element, property, decorator, file-kind, and template-kind metadata.
  • Lightweight custom element, property, and decorator name validation.

Non-goals

  • Web component implementation.
  • Decorator execution.
  • DOM behavior or template parsing.

License

Licensed under either Apache-2.0 or MIT.