Attribute Macro rhai::expose_under_internals

source ·
#[expose_under_internals]
Expand description

Macro to automatically expose a Rust function, type-def or use statement as pub when under the internals feature.

If the internals is not enabled, the item will be exposed as pub(crate).

In order to avoid confusion, there must not be any visibility modifier on the item.