use-php-extension 0.0.1

PHP extension metadata primitives for RustUse.
Documentation
  • Coverage
  • 15.63%
    5 out of 32 items documented1 out of 22 items with examples
  • Size
  • Source code size: 8.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 730.8 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-extension

PHP extension metadata primitives for RustUse.

Experimental

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

Example

use use_php_extension::{PhpExtensionKind, PhpExtensionName, PhpExtensionRequirement};

let requirement = PhpExtensionRequirement::required(PhpExtensionName::new("mbstring")?)
    .with_kind(PhpExtensionKind::Bundled);

assert_eq!(requirement.name().as_str(), "mbstring");
assert!(requirement.is_required());
# Ok::<(), use_php_extension::PhpExtensionError>(())

Scope

  • Extension names, requirement flags, extension kinds, and simple version constraint labels.

Non-goals

  • Extension loading, runtime inspection, PECL clients, or platform compatibility checks.

License

Licensed under either Apache-2.0 or MIT.