datex-core 0.0.12

The DATEX Core Rust implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use datex_core::{
    runtime::{RuntimeConfig, RuntimeRunner},
    values::core_values::endpoint::Endpoint,
};

/**
 * test if the DATEX Runtime is initialized correctly
 */
#[tokio::test]
pub async fn init_runtime() {
    RuntimeRunner::new(RuntimeConfig::new_with_endpoint(Endpoint::new(
        "@test",
    )))
    .run(async |runtime| {
        assert_eq!(runtime.version(), env!("CARGO_PKG_VERSION"));
    })
    .await;
}