use-php-docblock 0.0.1

PHPDoc block metadata primitives for RustUse.
Documentation
  • Coverage
  • 11.36%
    5 out of 44 items documented1 out of 32 items with examples
  • Size
  • Source code size: 10.7 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 905.21 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-php
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-php-docblock

PHPDoc block metadata primitives for RustUse.

Experimental

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

Example

use use_php_docblock::{Docblock, DocblockTag, DocblockTagKind, TagName};

let block = Docblock::new("/**\n * Create a user.\n *\n * Stores metadata only.\n */")?;
let tag = DocblockTag::new(TagName::new("return")?).with_kind(DocblockTagKind::Return);

assert_eq!(block.summary(), "Create a user.");
assert_eq!(tag.kind(), Some(DocblockTagKind::Return));
# Ok::<(), use_php_docblock::PhpDocblockError>(())

Scope

  • PHPDoc summary/body metadata, common tag labels, tag names, and type-string wrappers.

Non-goals

  • Complete PHPDoc parsing, type-expression parsing, inheritance, or analyzer-specific dialects.

License

Licensed under either Apache-2.0 or MIT.