Comments (3)
@rnag it's something more niche where I do not have a real alternative: https://github.com/Keats/jsonwebtoken
from rust.aws-cdk-lambda.
Ok seems like adding this to cargo.toml fixes the issue:
openssl = { version = '0.10', features = ["vendored"] }
from rust.aws-cdk-lambda.
@lxwbr assuming this is for the reqwest
dependency, which is one of the more popular crates, it should be possible to disable the default openssl feature, and enable the rustls-tls
feature, which uses rust native tls rather than an openssl implementation (which is os dependent and can cause some issues on Linux platforms like AWS Lambda).
For example, in Cargo.toml
:
reqwest = { version = "*", default-features=false, features = ["rustls-tls"] }
You can also see usage of this in the Cargo.toml
in the sample CDK projects, for example:
https://github.com/rnag/rust.aws-cdk-lambda/blob/main/cdk-examples/rust-bins/Cargo.toml#L24
from rust.aws-cdk-lambda.
Related Issues (10)
- Don't build on synth HOT 5
- How can I test locally using `sam local start-lambda` with this setup? HOT 1
- Unhelpful error thrown when cargo is missing HOT 2
- buildEnvironment does not pass correct params to build process HOT 2
- Local dependencies HOT 1
- Use cargo-lambda for compilation HOT 1
- Hardcode or specify a glibc version for compilation
- Add an option to compile code in a Docker container HOT 2
- cdk destroy shouldn't rebuild the lambda? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust.aws-cdk-lambda.