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

Version Path
wasmtime-29.0.0 ext/src/lib.rs
wasmtime-28.0.0 ext/src/lib.rs
wasmtime-27.0.0 ext/src/lib.rs
wasmtime-26.0.0 ext/src/lib.rs
wasmtime-25.0.2 ext/src/lib.rs
wasmtime-25.0.1 ext/src/lib.rs
wasmtime-25.0.0 ext/src/lib.rs
wasmtime-24.0.0 ext/src/lib.rs
wasmtime-23.0.2 ext/src/lib.rs
wasmtime-22.0.0 ext/src/lib.rs
wasmtime-21.0.1 ext/src/lib.rs