ockam_node_no_std 0.14.0

Ockam library types that do not need `std`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![cfg_attr(not(feature = "std"), no_std)]
//! `no_std` implementation of Ockam Node

use core::future::Future;

/// Block on the execution of the given future.
pub fn block_on<T>(future: impl Future<Output = T> + 'static + Send) -> T
where
    T: Send + 'static,
{
    executor::block_on(future)
}