aurelia 0.2.0

Embeddable service mesh for Rust distributed applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// This file is part of the Aurelia workspace.
// SPDX-FileCopyrightText: 2026 Zivatar Limited
// SPDX-License-Identifier: Apache-2.0

use super::Aurelia;

#[test]
fn runtime_initializes_and_spawns() {
    let _aurelia = Aurelia::new();
    let handle = crate::platform::runtime::handle();
    let (tx, rx) = tokio::sync::oneshot::channel();
    handle.spawn(async move {
        let _ = tx.send(42u8);
    });
    let value = crate::platform::runtime::ensure()
        .block_on(async { rx.await.expect("runtime task should send") });
    assert_eq!(value, 42u8);
}