forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: source and sink implementation in Rust (blocking implementation) (
numaproj#2190) Signed-off-by: Yashash H L <yashashhl25@gmail.com> Signed-off-by: Sreekanth <prsreekanth920@gmail.com> Signed-off-by: Vigith Maurice <vigith@gmail.com> Co-authored-by: Yashash H L <yashashhl25@gmail.com> Co-authored-by: Sreekanth <prsreekanth920@gmail.com>
- Loading branch information
1 parent
e98ff98
commit 5b77782
Showing
44 changed files
with
3,245 additions
and
809 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ spec: | |
- from: in | ||
to: cat | ||
- from: cat | ||
to: out | ||
to: out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/bash | ||
|
||
set -xeuo pipefail | ||
|
||
# Builds static rust binaries for both aarch64 and amd64 | ||
# Intended for building Linux binries from Mac OS host in a docker container. | ||
# Usage: (from root directory of numaflow repo) | ||
# docker run -v ./rust/:/app/ -w /app --rm ubuntu:24.04 bash build.sh | ||
|
||
# Detect the host machine architecture | ||
ARCH=$(uname -m) | ||
|
||
apt update && apt install -y curl protobuf-compiler build-essential | ||
|
||
if [ ! -f "$HOME/.cargo/env" ]; then | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
fi | ||
. "$HOME/.cargo/env" | ||
|
||
# Function to build for aarch64 | ||
build_aarch64() { | ||
apt install -y gcc-aarch64-linux-gnu | ||
sed -i "/^targets = \[/d" rust-toolchain.toml | ||
RUSTFLAGS='-C target-feature=+crt-static -C linker=aarch64-linux-gnu-gcc' cargo build --release --target aarch64-unknown-linux-gnu | ||
sed -i "/targets = \['aarch64-unknown-linux-gnu'\]/d" rust-toolchain.toml | ||
} | ||
|
||
# Function to build for x86_64 | ||
build_x86_64() { | ||
apt install -y gcc-x86-64-linux-gnu | ||
sed -i "/^targets = \[/d" rust-toolchain.toml | ||
echo "targets = ['x86_64-unknown-linux-gnu']" >> rust-toolchain.toml | ||
RUSTFLAGS='-C target-feature=+crt-static -C linker=x86_64-linux-gnu-gcc' cargo build --release --target x86_64-unknown-linux-gnu | ||
sed -i "/targets = \['x86_64-unknown-linux-gnu'\]/d" rust-toolchain.toml | ||
} | ||
|
||
build_aarch64 | ||
build_x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.