use-wordpress-block 0.0.1

WordPress block metadata primitives for RustUse.
Documentation
  • Coverage
  • 14.58%
    7 out of 48 items documented1 out of 33 items with examples
  • Size
  • Source code size: 10.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.31 MB 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-wordpress-block

WordPress block metadata primitives for RustUse.

Experimental

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

Example

use use_wordpress_block::{WordPressBlockJson, WordPressBlockName};

let block = WordPressBlockJson::new(WordPressBlockName::new("acme/book-card")?);

assert_eq!(block.name().as_str(), "acme/book-card");
# Ok::<(), use_wordpress_block::WordPressBlockError>(())

Scope

  • block.json-oriented block names, categories, attributes, supports, and asset path labels.

Non-goals

  • JavaScript, Gutenberg runtime behavior, block rendering, or asset building.

License

Licensed under either Apache-2.0 or MIT.