Skip to content

Commit

Permalink
Revert "Remove reqwest dependency (#354)" (#365)
Browse files Browse the repository at this point in the history
This reverts commit 1d669a7.
  • Loading branch information
diehuxx authored Sep 23, 2024
1 parent 1d669a7 commit 83f2954
Show file tree
Hide file tree
Showing 40 changed files with 128 additions and 17,314 deletions.
9 changes: 0 additions & 9 deletions .vscode/settings.json

This file was deleted.

201 changes: 0 additions & 201 deletions bindings/LICENSE

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM --platform=linux/amd64 alpine:latest
RUN apk add --no-cache \
build-base \
musl-dev \
openssl-dev \
linux-headers \
rustup \
libgcc \
Expand All @@ -12,12 +13,21 @@ RUN apk add --no-cache \
git \
perl \
make \
bash
bash \
openssl-libs-static

# Install rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --no-modify-path --default-toolchain 1.74.0
ENV PATH="/root/.cargo/bin:${PATH}"

# Set environment variables to ensure vendored OpenSSL is used
ENV OPENSSL_STATIC=1
ENV OPENSSL_LIB_DIR=/usr/lib
ENV OPENSSL_INCLUDE_DIR=/usr/include
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig
ENV LIBRARY_PATH="/usr/lib:/usr/local/lib"

# Copy the source code to the container
WORKDIR /usr/src/myapp
COPY Cargo.toml ./
Expand All @@ -34,7 +44,7 @@ RUN cargo build --release --package web5_uniffi
# Compile as a dynamic lib (.so) from our static lib (.a) while keeping dependencies self-contained
RUN gcc -shared -o target/release/libweb5_uniffi.so -Wl,--whole-archive \
target/release/libweb5_uniffi.a -Wl,--no-whole-archive -static-libgcc \
-Wl,-Bdynamic -fPIC
-L/usr/lib -lssl -lcrypto -Wl,-Bdynamic -fPIC

# Set the entrypoint, so that we can `docker cp` the build output
CMD tail -f /dev/null
Empty file removed bound/LICENSE
Empty file.
1 change: 0 additions & 1 deletion bound/typescript/dist/bundle.js

This file was deleted.

28 changes: 0 additions & 28 deletions bound/typescript/dist/src/crypto/dsa/ed25519.js

This file was deleted.

14 changes: 0 additions & 14 deletions bound/typescript/dist/src/crypto/dsa/index.js

This file was deleted.

27 changes: 0 additions & 27 deletions bound/typescript/dist/src/crypto/jwk.js

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions bound/typescript/dist/src/crypto/key_managers/index.js

This file was deleted.

13 changes: 0 additions & 13 deletions bound/typescript/dist/src/errors.js

This file was deleted.

Loading

0 comments on commit 83f2954

Please sign in to comment.