Skip to content

Commit

Permalink
Fixing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsnaps committed May 2, 2023
1 parent 5447130 commit 4da5823
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
ARG RUSTC_VERSION=1.67.1
RUN apk update \
&& apk upgrade \
&& apk add build-base binutils-gold openssl3-dev protoc protobuf-dev curl git \
&& apk add build-base binutils-gold openssl3-dev protoc protobuf-dev curl git linux-headers clang \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --profile minimal --default-toolchain ${RUSTC_VERSION} -c rustfmt -y

WORKDIR /usr/src/limitador
Expand Down
1 change: 1 addition & 0 deletions limitador/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async-trait = "0.1"
cfg-if = "1"
prometheus = "0.13"
lazy_static = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rocksdb = { version = "0.20.1", features = ["multi-threaded-cf"] }

# Optional dependencies
Expand Down
1 change: 1 addition & 0 deletions limitador/src/storage/disk/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ mod rocksdb_storage;
#[cfg(not(target_arch = "wasm32"))]
pub use rocksdb_storage::RocksDbStorage as DiskStorage;

#[cfg(not(target_arch = "wasm32"))]
impl From<rocksdb::Error> for StorageErr {
fn from(error: rocksdb::Error) -> Self {
Self {
Expand Down

0 comments on commit 4da5823

Please sign in to comment.