Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Rust rewrite #6

Merged
merged 46 commits into from
Aug 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
7681a51
Add basic Rust infra
mlafeldt Aug 9, 2021
7d0aba9
Rewrite heartbeat Lambda
mlafeldt Aug 9, 2021
47c8363
Use reqwest crate and make TLS work
mlafeldt Aug 11, 2021
7fd9d3c
Delete Rust example Lambda
mlafeldt Aug 11, 2021
ced8869
Configure log level via environment
mlafeldt Aug 12, 2021
c936f4a
Fully reimplement heartbeat Lambda
mlafeldt Aug 12, 2021
a64133d
Remove obsolete TS Lambda
mlafeldt Aug 12, 2021
6e28c87
Add rustfmt config
mlafeldt Aug 12, 2021
f072221
Add unit tests
mlafeldt Aug 13, 2021
93e567d
Start reimplementing get-strip
mlafeldt Aug 16, 2021
f9f6a0f
Extract scraping
mlafeldt Aug 17, 2021
4a15b28
Test scraping
mlafeldt Aug 18, 2021
c21a1e7
Switch to Amazon Linux 2 Lambda runtime
mlafeldt Aug 20, 2021
d81388e
cargo update
mlafeldt Aug 20, 2021
df6d401
Port all scraping tests
mlafeldt Aug 23, 2021
404a6ab
Extract dilbert module
mlafeldt Aug 23, 2021
512ea51
Remove unused crate
mlafeldt Aug 23, 2021
b56537a
Simplify test setup
mlafeldt Aug 23, 2021
2a1b1b4
Upload comic strip to S3
mlafeldt Aug 24, 2021
5733c74
Switch to standard bin layout
mlafeldt Aug 24, 2021
82240d7
Replace openssl with rustls
mlafeldt Aug 24, 2021
6fa81f6
Speed up Rust Lambdas by disabling debug logging
mlafeldt Aug 25, 2021
2bc39a8
Tweak tokio features
mlafeldt Aug 25, 2021
803ab68
Enable GitHub actions
mlafeldt Aug 26, 2021
9975bc9
Stop building already ported Go Lambdas
mlafeldt Aug 26, 2021
94b34cd
Validate date format
mlafeldt Aug 26, 2021
490edbf
Access test data via include_str
mlafeldt Aug 27, 2021
48306cc
First working version of gen-feed in Rust
mlafeldt Aug 28, 2021
3104ab9
Use NaiveDate internally
mlafeldt Aug 28, 2021
763bbb2
Apply builder pattern
mlafeldt Aug 28, 2021
14b6d95
Allow calling scrape_comic more than once
mlafeldt Aug 29, 2021
844b157
Extract feed module and add test
mlafeldt Aug 30, 2021
75e2143
Use pretty assertions everywhere
mlafeldt Aug 30, 2021
e52162e
Get comic title from S3 metadata
mlafeldt Aug 30, 2021
d3b0aec
Use ported gen-feed Lambda
mlafeldt Aug 30, 2021
f41efe8
Remove Go code
mlafeldt Aug 30, 2021
dfc823d
Tweak Rust build system
mlafeldt Aug 30, 2021
0fc1bd2
More polish
mlafeldt Aug 30, 2021
f8b72d9
Use NaiveDate all the way down
mlafeldt Aug 31, 2021
805e12e
Extract LAMBDA_DEFAULTS
mlafeldt Aug 31, 2021
a2576d0
Merge remote-tracking branch 'origin/main' into rust
mlafeldt Aug 31, 2021
4d5b4b8
Tweak logging
mlafeldt Aug 31, 2021
2809f95
cargo update
mlafeldt Aug 31, 2021
3fc2e78
Bump feed version after Rust port
mlafeldt Aug 31, 2021
f8fe451
Document requirements
mlafeldt Aug 31, 2021
a8d3751
Add TODO
mlafeldt Aug 31, 2021
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
41 changes: 41 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Rust

on:
push:
branches:
- main
pull_request:

jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true

- name: Get sources
uses: actions/checkout@v2

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --workspace

- name: Lint
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace -- -D warnings

- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.d.ts
*.js
bin
cdk.context.json
cdk.out
node_modules
/bin
/cdk.context.json
/cdk.out
/node_modules
/target
Loading