use-js-export 0.0.1

JavaScript export metadata primitives for RustUse
Documentation
  • Coverage
  • 75%
    15 out of 20 items documented1 out of 15 items with examples
  • Size
  • Source code size: 7.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 479.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s 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-js-export

JavaScript export metadata primitives for RustUse.

Experimental

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

Example

use use_js_export::{JsExportKind, JsExportSpecifier, JsExportStatementParts};

let parts = JsExportStatementParts::new(JsExportKind::Named)
    .with_specifier(JsExportSpecifier::named("Button", Some("Button")));

assert_eq!(parts.kind(), JsExportKind::Named);
assert_eq!(parts.specifiers()[0].exported(), Some("Button"));

Scope

  • Export metadata labels and simple statement parts.
  • Optional re-export source specifiers.

Non-goals

  • Parsing arbitrary source code.
  • Resolving module exports.
  • TypeScript compiler behavior.

License

Licensed under either Apache-2.0 or MIT.