wasmtime-wasi-tls-nativetls 36.0.18
“Wasmtime implementation of the wasi-tls API, using native-tls for TLS support.”
Basename is uppercase README.mdCaret or XOR expression text
SHA-2564c326235f7a261ab38c889212b447d455f3745668ea9532d75c854ec40e56a7a
MaleculeMd₂(In₄Pa)
Evidence
1use anyhow::{Result, anyhow};
2use wasmtime::{
3 Store,
4 component::{Component, Linker, ResourceTable},
5};
6use wasmtime_wasi::{WasiCtx, WasiCtxView, WasiView, p2::bindings::Command};
7use wasmtime_wasi_tls::{LinkOptions, WasiTls, WasiTlsCtx, WasiTlsCtxBuilder};
8
9struct Ctx {
10 table: ResourceTable,
11 wasi_ctx: WasiCtx,
12 wasi_tls_ctx: WasiTlsCtx,
13}
14
15impl WasiView for Ctx {
16 fn ctx(&mut self) -> WasiCtxView<'_> {
17 WasiCtxView {
18 ctx: &mut se …
47:39… &mut h.table)
48 })?;
49
50 let command = Command::instantiate_async(&mut store, &component, &linker).await?;
51 …
55 .map_err(|()| anyhow!("command returned with failing exit status"))
56}
57
58macro_rules! assert_test_exists {
59 ($name:ident) => {
60 #[ex …
63:2…
64
65test_programs_artifacts::foreach_tls!(assert_test_exists);
66
67#[tokio::test(flavor = "multi_thread")]
68async fn tls_sample_application() -> Result<()> {
69 run_test(test_programs_artifacts::TLS_SAMPL …
1//! The `native_tls` provider.
2
3use std::{io, pin::pin};
4
5use wasmtime_wasi_tls::{TlsProvider, TlsStream, TlsTransport};
6
7type BoxFuture<T> = std::pin::Pin<Box<dyn Future<Output = T> + Send>>;
8
9/// The `native_tls` provider.
10pub stru …
No evidence locations were recorded for this file. Raw result