ext-php-rs/src/internal.rs
David Cole 466c1658e3
Refactor module paths (#101)
* 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
2021-10-10 17:51:55 +13:00

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();
}