Tried testing out the Rust Hello World example but am running into some errors with sam build
$ sam build --beta-features
Experimental features are enabled for this session.
Visit the docs page to learn more about the AWS Beta terms https://aws.amazon.com/service-terms/.
Starting Build use cache
Cache is invalid, running build and copying resources for following functions (HelloWorldFunction)
Building codeuri: <...>/rust_app runtime: provided.al2023
architecture: x86_64 functions: HelloWorldFunction
Workflow RustCargoLambdaBuilder does not support value "False" for building in source. Using default value "True".
Running RustCargoLambdaBuilder:CargoLambdaBuild
Build Failed
Error: RustCargoLambdaBuilder:CargoLambdaBuild - Cargo Lambda failed: Cannot find Cargo Lambda. Cargo Lambda must be installed on the host machine to use this feature. Follow the gettings started guide to learn how to install it: https://www.cargo-lambda.info/guide/getting-started.html
Steps to reproduce:
Use sam init to create a Hello World example project using runtime provided.al2023
Hello @paulsmithkc, as mentioned in the error message and the docs, Cargo Lambda needs to be installed to use sam build for rust projects. Let us know if you are still running into issues or have questions.
Description:
Tried testing out the Rust Hello World example but am running into some errors with
sam build
Steps to reproduce:
sam init
to create a Hello World example project using runtimeprovided.al2023
sam build
Observed result:
Project fails to build
Expected result:
Project builds successfully
Additional environment details
sam --version
sam --info