diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f428926..7c3fdf2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,7 @@ jobs: output: - cryptle-rust - echo-tcp-rust-mio + - echo-tcp-rust-tokio - fibonacci-c - fibonacci-cpp - fibonacci-go diff --git a/flake.nix b/flake.nix index 1eae983..0552e05 100644 --- a/flake.nix +++ b/flake.nix @@ -196,6 +196,19 @@ conf = "${self}/Rust/mio-echo-tcp/Enarx.toml"; }; + echo-tcp-rust-tokio-wasm = naersk-lib.buildPackage { + src = "${self}/Rust/tokio-echo-tcp"; + CARGO_BUILD_TARGET = "wasm32-wasi"; + }; + + echo-tcp-rust-tokio = buildEnarxPackage { + inherit (final) pkgs; + inherit (cargoPackage "${self}/Rust/tokio-echo-tcp/Cargo.toml") name version; + + wasm = "${final.echo-tcp-rust-tokio-wasm}/bin/tokio-echo-tcp.wasm"; + conf = "${self}/Rust/tokio-echo-tcp/Enarx.toml"; + }; + http-rust-tokio-wasm = naersk-lib.buildPackage { src = "${self}/Rust/tokio-http"; CARGO_BUILD_TARGET = "wasm32-wasi"; @@ -264,6 +277,8 @@ inherit echo-tcp-rust-mio echo-tcp-rust-mio-wasm + echo-tcp-rust-tokio + echo-tcp-rust-tokio-wasm enarx-credential-helper-gopass enarx-credential-helper-pass fibonacci-c