Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust] Bump ohkami to v0.21 and Add various tests #9567

Merged
merged 9 commits into from
Mar 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix dockerfiles
kanarus committed Jan 26, 2025

Verified

This commit was signed with the committer’s verified signature.
commit 218d38c6718027d7e3e596e00b14f6a3fb9c5c2e
7 changes: 5 additions & 2 deletions frameworks/Rust/ohkami/rt_async-std.dockerfile
Original file line number Diff line number Diff line change
@@ -4,8 +4,11 @@ RUN apt update && apt install -y --no-install-recommends \
libpq-dev pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY ./rt_async-std ./Cargo.toml ./Cargo.lock ./src /build/

COPY ./Cargo.toml /build/
COPY ./Cargo.lock /build/
COPY ./src/ /build/src/
COPY ./rt_async-std/ /build/rt_async-std/

WORKDIR /build/rt_async-std
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release

5 changes: 4 additions & 1 deletion frameworks/Rust/ohkami/rt_glommio.dockerfile
Original file line number Diff line number Diff line change
@@ -4,7 +4,10 @@ RUN apt update && apt install -y --no-install-recommends \
libpq-dev pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY ./rt_glommio ./Cargo.toml ./Cargo.lock ./src /build/
COPY ./Cargo.toml /build/
COPY ./Cargo.lock /build/
COPY ./src/ /build/src/
COPY ./rt_glommio/ /build/rt_glommio/

WORKDIR /build/rt_glommio
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
7 changes: 5 additions & 2 deletions frameworks/Rust/ohkami/rt_nio.dockerfile
Original file line number Diff line number Diff line change
@@ -4,8 +4,11 @@ RUN apt update && apt install -y --no-install-recommends \
libpq-dev pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY ./rt_nio ./Cargo.toml ./Cargo.lock ./src /build/

COPY ./Cargo.toml /build/
COPY ./Cargo.lock /build/
COPY ./src/ /build/src/
COPY ./rt_nio/ /build/rt_nio/

WORKDIR /build/rt_nio
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release

7 changes: 5 additions & 2 deletions frameworks/Rust/ohkami/rt_smol.dockerfile
Original file line number Diff line number Diff line change
@@ -4,8 +4,11 @@ RUN apt update && apt install -y --no-install-recommends \
libpq-dev pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY ./rt_smol ./Cargo.toml ./Cargo.lock ./src /build/

COPY ./Cargo.toml /build/
COPY ./Cargo.lock /build/
COPY ./src/ /build/src/
COPY ./rt_smol/ /build/rt_smol/

WORKDIR /build/rt_smol
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release

7 changes: 5 additions & 2 deletions frameworks/Rust/ohkami/rt_tokio.dockerfile
Original file line number Diff line number Diff line change
@@ -4,8 +4,11 @@ RUN apt update && apt install -y --no-install-recommends \
libpq-dev pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*

COPY ./rt_tokio ./Cargo.toml ./Cargo.lock ./src /build/

COPY ./Cargo.toml /build/
COPY ./Cargo.lock /build/
COPY ./src/ /build/src/
COPY ./rt_tokio/ /build/rt_tokio/

WORKDIR /build/rt_tokio
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release