use-uv 0.0.1

uv command and project metadata primitives for RustUse
Documentation
  • Coverage
  • 32.73%
    18 out of 55 items documented1 out of 20 items with examples
  • Size
  • Source code size: 14.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.07 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-python
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-uv

uv command and project metadata primitives for RustUse.

Experimental

use-uv is experimental while use-python remains below 0.3.0.

Example

use use_uv::{UvCommand, UvLockfile, UvPackageSpec};

let command: UvCommand = "sync".parse()?;
let package = UvPackageSpec::new("ruff>=0.4")?;

assert_eq!(command.to_string(), "sync");
assert_eq!(package.as_str(), "ruff>=0.4");
assert_eq!(UvLockfile::UvLock.as_str(), "uv.lock");
# Ok::<(), use_uv::UvTextError>(())

Scope

  • uv command and subcommand labels.
  • uv lockfile and config file labels.
  • Workspace and package spec metadata text.

Non-goals

  • Shelling out to uv.
  • Implementing dependency resolution.
  • Contacting package indexes.
  • Managing Python installations or virtual environments.

License

Licensed under either Apache-2.0 or MIT.