use-bun 0.0.1

Bun runtime metadata primitives for RustUse
Documentation
  • Coverage
  • 47.62%
    10 out of 21 items documented1 out of 10 items with examples
  • Size
  • Source code size: 8.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 648.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-bun

Bun runtime metadata primitives for RustUse.

Experimental

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

Example

use use_bun::{BunCommand, BunLockfile, BunVersion};

let version: BunVersion = "1.1.8".parse()?;

assert_eq!(version.major(), 1);
assert_eq!("install".parse::<BunCommand>()?, BunCommand::Install);
assert_eq!(BunLockfile::Binary.as_str(), "bun.lockb");
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

  • Bun version labels.
  • Common command labels.
  • Lockfile labels.

Non-goals

  • Running Bun.
  • Package installation.
  • Lockfile parsing.

License

Licensed under either Apache-2.0 or MIT.