Skip to content

Commit 460a6e9

Browse files
committed
use rustls instead of native-tls when building matrix-rust-sdk
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
1 parent 301bb75 commit 460a6e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rebuild_rust_sdk.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ elif [[ $ARG == .* ]]; then # starts with . => relative path
3333
echo "path not found: $ARG";
3434
exit 1
3535
fi
36-
else # HTTPS URL => git clone into temp dir
36+
else # HTTPS URL => git clone into temp dir
3737
rm -rf $RUST_SDK_DIR || echo 'no temp directory found, cloning';
3838
SEGMENTS=(${ARG//@/ });
3939
git clone --depth 1 --branch ${SEGMENTS[1]} ${SEGMENTS[0]} $RUST_SDK_DIR;
@@ -56,7 +56,7 @@ sed -i.bak 's/uniffi =.*/uniffi = "0\.29\.5"/' Cargo.toml
5656
sed -i.bak 's/"wasm-unstable-single-threaded"//' bindings/matrix-sdk-ffi/Cargo.toml
5757
sed -i.bak 's^uniffi_bindgen =.*^uniffi_bindgen = { git = "https:\/\/github.com\/mozilla\/uniffi-rs", rev = "f7a0ba703b4c06fff8fffa98078f2e5d7588a695" }^' Cargo.toml
5858
sed -i.bak 's#matrix-sdk-crypto = {#matrix-sdk-crypto = {features = ["_disable-minimum-rotation-period-ms"],#' Cargo.toml
59-
cargo build -p matrix-sdk-ffi --features 'native-tls,sentry'
59+
cargo build -p matrix-sdk-ffi --features 'rustls-tls,sentry'
6060
# generate the bindings
6161
echo "generating bindings to $COMPLEMENT_DIR/internal/api/rust...";
6262
uniffi-bindgen-go -o $COMPLEMENT_DIR/internal/api/rust --config $COMPLEMENT_DIR/uniffi.toml --library ./target/debug/libmatrix_sdk_ffi.a

0 commit comments

Comments
 (0)