Skip to content

Instantly share code, notes, and snippets.

@protochron
protochron / lib.rs
Created February 26, 2024 14:21
calling legacy Smithy provider from a component
wit_bindgen::generate!({
world: "hello",
exports: {
"wasi:http/incoming-handler": HttpServer,
},
});
use crate::wasmcloud::bus::lattice;
use exports::wasi::http::incoming_handler::Guest;
use wasi::http::types::*;
defmodule HeaderFlags do
use Bitwise
defstruct [:unsynchronized, :extended_header, :experimental, :footer]
@unsynchronized 128
@extended_header 64
@experimental 32
@footer 16
def read(bin_data) do
%HeaderFlags{

Keybase proof

I hereby claim:

  • I am protochron on github.
  • I am protochron (https://keybase.io/protochron) on keybase.
  • I have a public key whose fingerprint is B4AE 308D 1DD0 C87B 28E8 B404 04A4 DAA1 5863 8A09

To claim this, I am signing this object: