diff --git a/rust/lambdas/client-sync/deploy.sh b/rust/lambdas/client-sync/deploy.sh index a115ad8..9673e36 100644 --- a/rust/lambdas/client-sync/deploy.sh +++ b/rust/lambdas/client-sync/deploy.sh @@ -5,7 +5,7 @@ region=us-east-1 lambda=client-sync crate=client-sync -cargo build --release --target $target --package $crate +RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip rm proxy.zip diff --git a/rust/lambdas/index-html-server/deploy.sh b/rust/lambdas/index-html-server/deploy.sh index 0cedcf2..17cb80c 100644 --- a/rust/lambdas/index-html-server/deploy.sh +++ b/rust/lambdas/index-html-server/deploy.sh @@ -5,7 +5,7 @@ region=us-east-1 lambda=index-html-server crate=index-html-server -cargo build --release --target $target --package $crate +RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip rm proxy.zip diff --git a/rust/lambdas/photo-tracker/deploy.sh b/rust/lambdas/photo-tracker/deploy.sh index ed8a038..09c5c8d 100644 --- a/rust/lambdas/photo-tracker/deploy.sh +++ b/rust/lambdas/photo-tracker/deploy.sh @@ -5,7 +5,7 @@ region=us-east-1 lambda=photo-tracker crate=photo-tracker -cargo build --release --target $target --package $crate +RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip rm proxy.zip diff --git a/rust/lambdas/share-handler/deploy.sh b/rust/lambdas/share-handler/deploy.sh index 5c7ad16..e074c03 100644 --- a/rust/lambdas/share-handler/deploy.sh +++ b/rust/lambdas/share-handler/deploy.sh @@ -5,7 +5,7 @@ region=us-east-1 lambda=share-handler crate=share-handler -cargo build --release --target $target --package $crate +RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target $target --package $crate cp ./target/$target/release/$crate ./bootstrap && zip proxy.zip bootstrap && rm bootstrap aws lambda update-function-code --region $region --function-name $lambda --zip-file fileb://proxy.zip rm proxy.zip