openvm 2.0.1

OpenVM standard Rust library for guest programs.
1
2
3
4
5
6
7
8
9
10
11
//! System exit and panic functions.

/// Exit the program with exit code 0.
pub fn exit() {
    openvm_platform::rust_rt::terminate::<0>();
}

/// Exit the program with exit code 1.
pub fn panic() {
    openvm_platform::rust_rt::terminate::<1>();
}