Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Fixed crashed rust example on M1 MacOS (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 authored Mar 2, 2023
1 parent 4628b2f commit fa1018d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
31 changes: 19 additions & 12 deletions tools/docker-compose/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions tools/docker-compose/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]

pprof = { version = "0.10", features = ["protobuf-codec"] }
pprof = { version = "0.11", features = ["protobuf-codec"] }
hyper-routing = "0.6.1"
hyper = { version = "0.14", features = ["full"] }
tokio = { version = "1", features = ["full"] }
Expand All @@ -14,3 +13,6 @@ pretty_env_logger = "0.4"
log = "0.4"
form_urlencoded = "*"
libflate = "1.2.0"

[target.aarch64-apple-darwin.dependencies]
pprof = { version = "0.11", features = ["protobuf-codec","frame-pointer"] }
2 changes: 0 additions & 2 deletions tools/docker-compose/rust/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM rust:1.64.0-bullseye as build

#RUN apk add --no-cache musl-dev

WORKDIR /usr/src/cp-rust
RUN cargo init
COPY Cargo.toml Cargo.lock ./
Expand Down

0 comments on commit fa1018d

Please sign in to comment.