use-drupal 0.0.1

Drupal metadata primitives for RustUse.
Documentation
  • Coverage
  • 13.33%
    4 out of 30 items documented1 out of 26 items with examples
  • Size
  • Source code size: 6.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 974.13 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s 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-drupal

Drupal metadata primitives for RustUse.

Experimental

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

Example

use use_drupal::{DrupalModuleName, DrupalPermission, DrupalRouteName};

let module = DrupalModuleName::new("book_tools")?;
let route = DrupalRouteName::new("book_tools.index")?;
let permission = DrupalPermission::new("administer book tools")?;

assert_eq!(module.as_str(), "book_tools");
assert_eq!(route.as_str(), "book_tools.index");
assert_eq!(permission.as_str(), "administer book tools");
# Ok::<(), use_drupal::DrupalError>(())

Scope

  • Module names, theme names, route names, entity type IDs, config object names, permission strings, and extension kind labels.

Non-goals

  • Drupal API clients, service containers, routing, plugins, config storage, or runtime integration.

License

Licensed under either Apache-2.0 or MIT.