sim-lib-physics-runtime 0.1.0

Loadable composition of SIM physics surfaces without domain-policy duplication.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use sim_kernel::Lib;
use sim_lib_physics_runtime::{PhysicsRuntimeLib, surface_symbols};

#[test]
fn manifest_and_projection_have_the_same_unique_exports() {
    let manifest = PhysicsRuntimeLib.manifest();
    let symbols = surface_symbols();
    assert_eq!(manifest.exports.len(), symbols.len());
    let mut sorted = symbols.iter().map(ToString::to_string).collect::<Vec<_>>();
    sorted.sort();
    sorted.dedup();
    assert_eq!(sorted.len(), symbols.len());
}