auxon-sdk 2.3.0

A collection of clients, servers, protocols, and general API types for interacting with the APIs that are used throughout Auxon's suite of tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::net::Ipv4Addr;
use tokio::sync::oneshot::Sender;

#[tokio::main]
async fn main() {
    tracing_subscriber::fmt::init();
    let (shutdown_tx, shutdown_rx): (Sender<_>, _) = tokio::sync::oneshot::channel();
    auxon_sdk::mutator_server::server::serve_mutators(
        Default::default(),
        None,
        (Ipv4Addr::UNSPECIFIED, 8080),
        async {
            shutdown_rx.await.ok();
        },
    )
    .await;
    let _ = shutdown_tx.send(());
}