polkavm 0.36.0

A fast and secure RISC-V based virtual machine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[test]
fn initialize_default_engine_with_dynamic_paging() {
    let _ = env_logger::try_init();
    let mut config = polkavm::Config::from_env().unwrap();
    config.set_worker_count(1);
    config.set_allow_dynamic_paging(true);
    polkavm::Engine::new(&config).unwrap();
}

#[test]
fn initialize_default_engine_without_dynamic_paging() {
    let _ = env_logger::try_init();
    let mut config = polkavm::Config::from_env().unwrap();
    config.set_allow_dynamic_paging(false);
    polkavm::Engine::new(&config).unwrap();
}