mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-12 09:09:46 +01:00
466c1658e3
* Refactor module layout * Fixed documentation tests * Removed skel, moved macro crate * Ignore folders for crate publish * Fix builder for zts * Add `rustfmt.toml`, wrap all comments #96 * Fixed up documentation links, tidied up * Add `Zend` prefix to callable and hashtable * Updated guide types * Updated changelog
12 lines
398 B
Rust
12 lines
398 B
Rust
//! Internal, public functions that are called from downstream extensions.
|
|
|
|
/// Called by startup functions registered with the [`#[php_startup]`] macro.
|
|
/// Initializes all classes that are defined by ext-php-rs (i.e. `Closure`).
|
|
///
|
|
/// [`#[php_startup]`]: crate::php_startup
|
|
#[inline(always)]
|
|
pub fn ext_php_rs_startup() {
|
|
#[cfg(feature = "closure")]
|
|
crate::closure::Closure::build();
|
|
}
|