use-psr 0.0.1

PHP-FIG PSR metadata primitives for RustUse.
Documentation
  • Coverage
  • 20%
    7 out of 35 items documented1 out of 19 items with examples
  • Size
  • Source code size: 7.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 697.71 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s 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-psr

PHP-FIG PSR metadata primitives for RustUse.

Experimental

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

Example

use use_psr::{PsrCategory, PsrMetadata, PsrNumber, PsrStatus, PsrTitle};

let metadata = PsrMetadata::new(
    PsrNumber::new(4)?,
    PsrTitle::new("Autoloading Standard")?,
    PsrStatus::Accepted,
    PsrCategory::Autoloading,
);

assert_eq!(metadata.identifier(), "PSR-4");
# Ok::<(), use_psr::PsrError>(())

Scope

  • PSR numbers, titles, status labels, and broad categories.

Non-goals

  • Implementing PSR standards, HTTP messages, logging, cache, container, or event behavior.

License

Licensed under either Apache-2.0 or MIT.