hopper-runtime 0.5.0

Canonical low-level runtime surface for Hopper programs: direct account memory, validation, borrow guards, CPI, and zero-copy state access.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Small Hopper-owned wrappers for individual runtime syscalls used directly by
//! framework crates.

/// Emit the current compute-unit counter.
#[inline(always)]
pub fn sol_log_compute_units() {
    #[cfg(target_os = "solana")]
    // SAFETY: The syscall takes no pointer and has no memory precondition.
    unsafe {
        hopper_native::syscalls::sol_log_compute_units_();
    }
}