use-wordpress 0.0.1

WordPress metadata primitives for RustUse.
Documentation
  • Coverage
  • 11.63%
    5 out of 43 items documented1 out of 36 items with examples
  • Size
  • Source code size: 7.56 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.21 MB 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-wordpress

WordPress metadata primitives for RustUse.

Experimental

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

Example

use use_wordpress::{WordPressPluginHeader, WordPressPluginHeaderName, WordPressText};

let header = WordPressPluginHeader::new(
    WordPressPluginHeaderName::new("Plugin Name")?,
    WordPressText::new("Example Tools")?,
);

assert_eq!(header.name().as_str(), "Plugin Name");
# Ok::<(), use_wordpress::WordPressError>(())

Scope

  • Plugin header fields, theme metadata fields, post type slugs, taxonomy slugs, capability strings, and REST namespace/route labels.

Non-goals

  • WordPress SDK behavior, REST clients, plugins, themes, hooks, blocks, or runtime integration.

License

Licensed under either Apache-2.0 or MIT.