Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this project still being developed? #107

Open
andretietz opened this issue Dec 22, 2021 · 0 comments · May be fixed by #117
Open

Is this project still being developed? #107

andretietz opened this issue Dec 22, 2021 · 0 comments · May be fixed by #117

Comments

@andretietz
Copy link

andretietz commented Dec 22, 2021

Since the last update was half a year ago, I really need to ask, if this project is still alive?
I am having a problem, not sure what exactly the problem is...

🐛 Bug description

Whenever I build my rust-project using cargo, everything works fine. As soon as I try sls package using the plugin, I am getting:

Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Configuration warning at 'provider.runtime': should be equal to one of the allowed values [dotnetcore2.1, dotnetcore3.1, go1.x, java11, java8, java8.al2, nodejs10.x, nodejs12.x, nodejs14.x, provided, provided.al2, python2.7, python3.6, python3.7, python3.8, python3.9, ruby2.5, ruby2.7]
Serverless:  
Serverless: Learn more about configuration validation here: http://slss.io/configuration-validation
Serverless:  
Serverless: Building Rust user-api.me func...
Serverless: Running containerized build
error: no matching package named `lambda_runtime_api_client` found
location searched: https://github.com/awslabs/aws-lambda-rust-runtime/#a7e17ee4
required by package `lambda_runtime v0.4.1 (https://github.com/awslabs/aws-lambda-rust-runtime/#a7e17ee4)`
    ... which is depended on by `lambda_http v0.4.1 (https://github.com/awslabs/aws-lambda-rust-runtime/#a7e17ee4)`
    ... which is depended on by `user-api v0.1.0 (/code)`
Serverless: Rust build encountered an error: undefined 1.

🤔 Expected Behavior

The build should run free of failures and create package.

👟 Steps to reproduce

  • Checkout this project
  • make sure sls package works
  • update the Cargo.toml as follows(this is updating lambda_http and tokio):
tokio = { version = "1.15.0", features = ["macros"] }
lambda_http = { version = "0.4.1", git = "https://github.com/awslabs/aws-lambda-rust-runtime/", branch = "master"}
serde_json = "1.0.73"

If you now run cargo build the build works fine. But using sls package throws the error mentioned above.

🌍 Your environment

  • windows 10 x64
  • rustup 1.24.3
  • npm 8.3.0
  • node 17.2.0
{
  "devDependencies": {
    "serverless": "^1.74.1",
    "serverless-rust": "^0.3.8"
  }
}

I guess this might be related to the docker image (?!?)

So am I the only one using the default docker image? If so, is there a newer alternative you can hint me at?

The experimental "dockerless" option works.

This is why I am wondering if this project is still under development...

fdaciuk added a commit to fdaciuk/serverless-rust that referenced this issue Jun 25, 2022
Serverless 3 will throw an error if we use a `provider.runtime` option different from the allowed values.
This PR removes the need to use the new runtime option (`rust`) and uses `tags.rust: true` inside the function configuration.

This PR resolves softprops#107
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant