Skip to content

Commit

Permalink
4.0.0.beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ecklf committed Mar 14, 2023
1 parent 835027a commit fda52d8
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 26 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 4.0.0.beta.1

- Fix to support build targets with different name than its path filename

## 4.0.0.beta.0

- New builder and runtime crate (published as `vercel_runtime`)
Expand Down
15 changes: 0 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
members = [
"vercel_runtime",
"examples/cron",
"examples/merged",
"examples/nextjs",
"examples/simple",
]
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ First, you'll need a `vercel.json` file in your project:
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
Expand Down Expand Up @@ -72,6 +72,16 @@ vercel_runtime = { version = "0.2.1" }
name = "handler"
path = "api/handler.rs"

# Note that you need to provide unique names for dynamic paths
[[bin]]
name = "user-id"
path = "api/user/[id].rs"

[[bin]]
name = "group-id"
path = "api/group/[id].rs"


# --snip--
```

Expand Down
2 changes: 1 addition & 1 deletion examples/cron/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
},
"crons": [
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
2 changes: 1 addition & 1 deletion examples/simple/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vercel-rust",
"version": "4.0.0-beta.0",
"version": "4.0.0-beta.1",
"description": "Rust runtime for Vercel Functions.",
"homepage": "https://github.com/vercel-community/rust",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/01-include-files/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0",
"runtime": "vercel-rust@4.0.0-beta.1",
"includeFiles": "static/**/*.{txt,svg}"
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/02-with-utility/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
2 changes: 1 addition & 1 deletion test/fixtures/03-with-function/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
2 changes: 1 addition & 1 deletion test/fixtures/04-with-parameter/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}
2 changes: 1 addition & 1 deletion test/fixtures/05-with-similar-entrypaths/vercel.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"functions": {
"api/**/*.rs": {
"runtime": "vercel-rust@4.0.0-beta.0"
"runtime": "vercel-rust@4.0.0-beta.1"
}
}
}

0 comments on commit fda52d8

Please sign in to comment.