Skip to content

Commit 019777c

Browse files
feat(examples): upgrade rust 1.85
1 parent 55dd9e3 commit 019777c

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Table of Contents:
3535
| **[CORS Go](functions/cors-go/README.md)** <br/> A Go function which allows CORS requests. | go122 | [Serverless Framework] |
3636
| **[CORS Node](functions/cors-node/README.md)** <br/> A Node function which allows CORS requests. | node18 | [Serverless Framework] |
3737
| **[CORS Python](functions/cors-python/README.md)** <br/> A Python function which allows CORS requests. | python310 | [Serverless Framework] |
38-
| **[CORS Rust](functions/cors-rust/README.md)** <br/> A Rust function which allows CORS requests. | rust179 | [Serverless Framework] |
38+
| **[CORS Rust](functions/cors-rust/README.md)** <br/> A Rust function which allows CORS requests. | rust185 | [Serverless Framework] |
3939
| **[Go Hello World](functions/go-hello-world/README.md)** <br/> A simple "hello world" example for Go | go121 | [Serverless Framework] |
4040
| **[Go SQS Publish](functions/go-mnq-sqs-publish/README.md)** <br/> A Go function to publish messages to SQS. | go121 | [Serverless Framework] |
4141
| **[Go MultiPart Upload to S3](functions/go-upload-file-s3-multipart)** <br/> A function to upload file from form-data to S3. | go120 | [Serverless Framework] |
@@ -52,7 +52,7 @@ Table of Contents:
5252
| **[Python SQS Trigger Async Worker](functions/python-sqs-trigger-async-worker/README.md)** <br/> Use SQS queues and function triggers to scheule an async task from another function. | python311 | [Terraform] |
5353
| **[Python TEM SMTP Server](functions/python-tem-smtp-server/README.md)** <br/> Send Transactional Emails from a serverless function. | python311 | [Terraform] |
5454
| **[Redis TLS](functions/redis-tls/README.md)** <br/> How to connect a function to a Scaleway Redis cluster with TLS enabled. | python310 | [Terraform] |
55-
| **[Rust MNIST](functions/rust-mnist/README.md)** <br/> A Rust function to recognize hand-written digits with a simple neural network. | rust179 | [Serverless Framework] |
55+
| **[Rust MNIST](functions/rust-mnist/README.md)** <br/> A Rust function to recognize hand-written digits with a simple neural network. | rust185 | [Serverless Framework] |
5656
| **[PostgreSQL Python](functions/postgre-sql-python/README.md)** <br/> A Python function to perform a query on a PostgreSQL managed database. | python310 | [Serverless Framework] |
5757
| **[Terraform Python](functions/terraform-python-example/README.md)** <br/> A Python function deployed with Terraform. | python310 | [Terraform] |
5858
| **[Triggers Getting Started](functions/triggers-getting-started/README.md)** <br/> Simple SQS trigger example for all runtimes. | all | [Terraform] |

functions/cors-rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[package]
22
name = "cors-rust"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
axum = "0.7.5"
10-
http = "1.1.0"
9+
axum = "0.8.1"
10+
http = "1.3.1"

functions/cors-rust/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ service: cors-rust
22
configValidationMode: off
33
provider:
44
name: scaleway
5-
runtime: rust179
5+
runtime: rust185
66

77
plugins:
88
- serverless-scaleway-functions

functions/rust-mnist/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "function"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[[bin]]
77
name = "test-server"
88

99
[dependencies]
10-
axum = "0.7.5"
10+
axum = "0.8.1"
1111
tower = "0.4"
1212
tower-http = { version = "0.3.4", features = ["cors"] }
1313
tokio-test = "0.4"
@@ -20,7 +20,7 @@ dfdx = { version = "0.10.0" }
2020
serde = { version = "1", features = ["derive"] }
2121
serde_json = { version = "1" }
2222
pollster = "0.2.5"
23-
http = "1.1.0"
23+
http = "1.3.1"
2424

2525
[dependencies.common]
2626
path = "./common"

functions/rust-mnist/serverless.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ configValidationMode: off
33
useDotenv: true
44
provider:
55
name: scaleway
6-
runtime: rust179
6+
runtime: rust185
77

88
plugins:
99
- serverless-scaleway-functions

functions/triggers-getting-started/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ locals {
2222
}
2323
"rust" = {
2424
path = "rust"
25-
runtime = "rust179"
25+
runtime = "rust185"
2626
handler = "handler"
2727
}
2828
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "triggers-getting-started"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
axum = "0.7.5"
10-
http = "1.1.0"
9+
axum = "0.8.1"
10+
http = "1.3.1"
1111
hyper = { version = "0.14", features = ["http1"] }

0 commit comments

Comments
 (0)