use-packagist 0.0.1

Packagist metadata primitives for RustUse.
Documentation
  • Coverage
  • 17.14%
    6 out of 35 items documented1 out of 22 items with examples
  • Size
  • Source code size: 8.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 904.36 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-php
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-packagist

Packagist metadata primitives for RustUse.

Experimental

use-packagist is experimental while use-php remains below 0.3.0.

Example

use use_packagist::{PackagistDownloadCount, PackagistPackageName, PackagistStability};

let package = PackagistPackageName::new("symfony/console")?;
let downloads = PackagistDownloadCount::new(42);

assert_eq!(package.vendor(), "symfony");
assert_eq!(downloads.get(), 42);
assert_eq!(PackagistStability::Stable.as_str(), "stable");
# Ok::<(), use_packagist::PackagistError>(())

Scope

  • Packagist package identifiers, labels, package types, stability labels, and simple statistic wrappers.

Non-goals

  • Network clients, API pagination, package search, or Composer resolution.

License

Licensed under either Apache-2.0 or MIT.