use-deno 0.0.1

Deno runtime metadata primitives for RustUse
Documentation
  • Coverage
  • 41.67%
    10 out of 24 items documented1 out of 10 items with examples
  • Size
  • Source code size: 8.64 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 661.96 kB 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-deno

Deno runtime metadata primitives for RustUse.

Experimental

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

Example

use use_deno::{DenoConfigFile, DenoPermission, DenoVersion};

let version: DenoVersion = "1.42.0".parse()?;

assert_eq!(version.major(), 1);
assert_eq!("read".parse::<DenoPermission>()?, DenoPermission::Read);
assert_eq!(DenoConfigFile::DenoJson.as_str(), "deno.json");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

  • Deno version labels.
  • Permission labels.
  • Common config file labels.

Non-goals

  • Running Deno.
  • Permission enforcement.
  • Config parsing.

License

Licensed under either Apache-2.0 or MIT.