Sha256: e189d14525bd1067861928d38304f68408c3bec043e6367deb54f785473c99ea
Contents?: true
Size: 502 Bytes
Versions: 11
Compression:
Stored size: 502 Bytes
Contents
#![allow(clippy::doc_lazy_continuation)] use magnus::{Error, Ruby}; mod helpers; mod ruby_api; #[cfg(feature = "ruby-api")] pub use ruby_api::*; #[cfg(not(feature = "ruby-api"))] pub(crate) use ruby_api::*; #[cfg(not(feature = "ruby-api"))] // Let the upstream crate handle this rb_sys::set_global_tracking_allocator!(); #[magnus::init] pub fn init(ruby: &Ruby) -> Result<(), Error> { #[cfg(ruby_gte_3_0)] unsafe { rb_sys::rb_ext_ractor_safe(true); } ruby_api::init(ruby) }
Version data entries
11 entries across 11 versions & 1 rubygems