use-angular 0.0.1

Angular ecosystem metadata primitives for RustUse
Documentation
  • Coverage
  • 30.88%
    21 out of 68 items documented1 out of 21 items with examples
  • Size
  • Source code size: 21.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.13 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-angular

Angular ecosystem metadata primitives for RustUse.

Experimental

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

Example

use use_angular::{AngularArtifactKind, AngularModuleName, AngularSelector};

let selector = AngularSelector::new("app-root")?;
let module = AngularModuleName::new("AppModule")?;

assert_eq!(selector.as_str(), "app-root");
assert_eq!(module.as_str(), "AppModule");
assert_eq!(AngularArtifactKind::Component.as_str(), "component");
# Ok::<(), use_angular::AngularNameError>(())

Scope

  • Angular version-family, artifact-kind, file-kind, standalone-mode, and config-file labels.
  • Lightweight selector, directive name, and module name validation.

Non-goals

  • Angular compiler behavior.
  • Template parsing.
  • Dependency injection, RxJS, or CLI generation.

License

Licensed under either Apache-2.0 or MIT.