-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade rustc version (#1874)
Co-authored-by: Tushar Mathur <[email protected]>
- Loading branch information
1 parent
7dc6191
commit 5e3ca1d
Showing
18 changed files
with
163 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "nightly-2024-02-01" | ||
channel = "nightly-2024-05-06" | ||
profile = "default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "1.75" | ||
channel = "1.78" | ||
profile = "default" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: response | ||
--- | ||
{ | ||
"status": 200, | ||
"headers": { | ||
"content-type": "application/json" | ||
}, | ||
"body": { | ||
"data": { | ||
"hello": "darkness", | ||
"hi": "I've come to talk with you again" | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,8 @@ expression: response | |
}, | ||
"body": { | ||
"data": { | ||
"hi": "hello world" | ||
"hello": "hello world", | ||
"hi": "bye world" | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
tests/core/snapshots/test-js-request-response.md_client.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: client | ||
--- | ||
scalar Date | ||
|
||
scalar Email | ||
|
||
scalar Empty | ||
|
||
scalar JSON | ||
|
||
scalar PhoneNumber | ||
|
||
type Query { | ||
hello: String | ||
hi: String | ||
} | ||
|
||
scalar Url | ||
|
||
schema { | ||
query: Query | ||
} |
12 changes: 12 additions & 0 deletions
12
tests/core/snapshots/test-js-request-response.md_merged.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: merged | ||
--- | ||
schema @server @upstream @link(src: "test.js", type: Script) { | ||
query: Query | ||
} | ||
|
||
type Query { | ||
hello: String @http(baseURL: "http://localhost:3000", path: "/hello") | ||
hi: String @http(baseURL: "http://localhost:3000", path: "/hi") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Js Request Response Hello World | ||
|
||
This test is just a mirror of existing `test-js-request-response.md` but with changed values. It exists to test that js runtime is created separately for every app_ctx and they not interfere with each other. | ||
|
||
```js @file:test.js | ||
function onRequest({request}) { | ||
if (request.uri.path.endsWith("/hello")) { | ||
return { | ||
response: { | ||
status: 200, | ||
headers: { | ||
"Content-Type": "application/json", | ||
}, | ||
body: JSON.stringify("darkness"), | ||
}, | ||
} | ||
} else if (request.uri.path.endsWith("/hi")) { | ||
request.uri.path = "/old-friend" | ||
console.log({request}) | ||
return {request} | ||
} else { | ||
return {request} | ||
} | ||
} | ||
``` | ||
|
||
```graphql @server | ||
schema @server @link(type: Script, src: "test.js") { | ||
query: Query | ||
} | ||
|
||
type Query { | ||
hello: String @http(baseURL: "http://localhost:3000", path: "/hello") | ||
hi: String @http(baseURL: "http://localhost:3000", path: "/hi") | ||
} | ||
``` | ||
|
||
```yml @mock | ||
- request: | ||
method: GET | ||
url: http://localhost:3000/old-friend | ||
response: | ||
status: 200 | ||
body: I've come to talk with you again | ||
``` | ||
|
||
```yml @test | ||
- method: POST | ||
url: http://localhost:8080/graphql | ||
body: | ||
query: query { hello hi } | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5e3ca1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running 30s test @ http://localhost:8000/graphql
4 threads and 100 connections
424015 requests in 30.00s, 2.13GB read
Requests/sec: 14131.54
Transfer/sec: 72.53MB