greentic-runner-host 0.5.21

Host runtime shim for Greentic runner: config, pack loading, activity handling
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::cache::engine_profile::{CpuPolicy, EngineProfile};

#[test]
fn engine_profile_id_is_stable_for_default_config() {
    let engine = wasmtime::Engine::default();
    let profile = EngineProfile::from_engine(&engine, CpuPolicy::Native, "default".to_string());
    let profile_again =
        EngineProfile::from_engine(&engine, CpuPolicy::Native, "default".to_string());
    assert_eq!(profile.id(), profile_again.id());
}