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

Lambda with Async/Await #111

Merged
merged 35 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f914c3f
Remove synchronous lambda
Jun 28, 2019
5e66648
use custom proptest attribute; Err -> Error
Jun 28, 2019
96ea124
version bump
Jul 5, 2019
ae003fd
Fix failing ui tests
Jul 5, 2019
5869b52
remove better-panic dev dependency
Jul 5, 2019
2d5b168
remove publicly exported `Error` type alias.
Jul 5, 2019
abdf54a
fix silly type error
Jul 8, 2019
a564dac
Language/ecosystem updates.
Aug 14, 2019
b7eb844
Remove #![feature(async_await)]
Aug 22, 2019
024730f
update to latest syn + remove proptest dependency
Oct 1, 2019
12a1050
rename generics
Oct 1, 2019
8233a68
errors + external proptest dep
Oct 11, 2019
d31200d
dedicated request types
Nov 26, 2019
044caf5
simplify a bit
davidbarsky Nov 28, 2019
4b507c9
Update deps; remove flaky UI tests.
Dec 9, 2019
4d21c00
WIP
Dec 9, 2019
2447e4e
more WIP changes
Dec 10, 2019
a57f2d1
test expected endpoints
Dec 20, 2019
7a34cc2
it "works"
davidbarsky Dec 21, 2019
4b9a2e8
task-local context, baby
davidbarsky Dec 21, 2019
ee837cb
simulated endpoints
davidbarsky Dec 22, 2019
4a08c58
fix doc tests; handle paths correctly; run everything in tasks
davidbarsky Dec 22, 2019
b1e2570
remove unneeded dep
davidbarsky Dec 22, 2019
9528a7b
re-introduce @AnderEnder ci changes
davidbarsky Dec 22, 2019
5eb6954
remove double-serialization
davidbarsky Dec 23, 2019
b890cf4
remove travis
davidbarsky Dec 23, 2019
77c0b95
Use default HTTP scheme for endpoint like "127.0.0.1:9001" (#188)
skorobkov Dec 25, 2019
1b95ac1
test lambda function end-to-end
davidbarsky Dec 25, 2019
8fed758
lol, bye vscode
davidbarsky Jan 1, 2020
2d37c34
fix lambda-http deps (#189)
skorobkov Jan 1, 2020
603315a
fix error bounds
davidbarsky Jan 1, 2020
e691c0e
update dep; use tokio's task-local for ctx.
Jan 28, 2020
6536257
wip; added `race` macro ; started `Incoming` stream macro.
Jan 28, 2020
006a275
handle routing better
davidbarsky Jan 29, 2020
d252d04
Merge branch 'master' into async-await
davidbarsky Mar 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Rust

on: [push, pull_request]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-latest
rust:
- 1.40.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why fix to 1.40 instead of testing against stable? Do we plan to keep adding older versions here to ensure we maintain compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends: do we intend to have an minimum supported rust version?

- stable
- beta
- nightly
target:
- ""
- x86_64-unknown-linux-musl
include:
- rust: nightly
allow_failure: true
exclude:
- os: macOS-latest
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
rust: 1.40.0
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
rust: beta
target: x86_64-unknown-linux-musl
- os: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-musl
- os: macOS-latest
rust: 1.40.0
- os: macOS-latest
rust: beta
- os: macOS-latest
rust: nightly
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- name: Build
run: cargo build --all --verbose
env:
TARGET: ${{ matrix.target }}
continue-on-error: ${{ matrix.allow_failure }}
- name: Run tests
run: cargo test --all --verbose
env:
TARGET: ${{ matrix.target }}
continue-on-error: ${{ matrix.allow_failure }}
fmt:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clippy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we should add Clippy.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
override: true
- name: Run fmt check
run: cargo fmt --all -- --check
1 change: 1 addition & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
edition = "2018"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know this was a thing but heads up, rustfmt picks up the edition from your crate if invoked via cargo so you might not need this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, it normally should, but I think rust-analyzer didn't pick it up, but I think that was fixed.

# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#merge_imports
merge_imports = true
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#max_width
Expand Down
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

Loading