Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
build: build echo-tcp-rust-tokio example
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Aug 1, 2022
1 parent 9c46bee commit 363c20c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
output:
- cryptle-rust
- echo-tcp-rust-mio
- echo-tcp-rust-tokio
- fibonacci-c
- fibonacci-cpp
- fibonacci-go
Expand Down
15 changes: 15 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 363c20c

Please sign in to comment.