ark-api-ffi 0.16.0

Ark low-level Wasm FFI API
Documentation
define_api_id!(0xbb0f_0dfe_ff53_2a58, "applet-v3");

#[ark_api_macros::ark_bindgen(imports = "ark-applet-v3")]
mod applet {
    #[repr(u32)]
    #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
    pub enum TimestepMode {
        Free = 0,
        Fixed = 1, // The step is timestep_s, passed into set_timestep_mode.
    }

    extern "C" {
        /// Lets a module override the timestep mode, and set the timestep length, for example 1.0 / 60.0.
        #[deprecated_infallible]
        pub fn set_timestep_mode(mode: TimestepMode, timestep_s: f64);
    }
}

pub use applet::*;