Skip to content

Commit

Permalink
RSO Example App - Rust (#924)
Browse files Browse the repository at this point in the history
* initial commit

* initial update

* applying clippy fixes

* fixing clippy error

* fixes based on PR feedback

* updating README to include auth instructions and debug Makefile updates

* updating dependencies

* updating config to support address

* updating config to support address

* making updates per PR feedback

* cleaning up config tests

* switching from warp->axum

* cleaning up service and oauth tests

* updating tests to support axum

* updating dependencies

* cleaning up tests

* updating depnendcies

* updates per PR feedback

* sorting Cargo.toml

* cleaning up dependencies

* adding code documentations, and updating tests to no longer use localhost.

* updating dependencies

* Refactor configuration parsing to include more detailed error message for better troubleshooting

* Updating docs

* Update Makefile to open project documentation in a web browser

* Update server, API, and RSO configurations for Riot Games integration in Rust sample apps

* Update styling and layout for account and champion data display, and login interface

* including GHA

* Testing GHA

* Testing GHA

* setting GHA working directory

* switching GHA cargo execution

* formatting

* Updating Makefile to include fmt

* updating checkout version

* removing action-rs dependency

* updating rust-toolchain

---------

Co-authored-by: @defstream <[email protected]>
  • Loading branch information
defstream and defstream authored Aug 28, 2024
1 parent 08545d7 commit 8a27a03
Show file tree
Hide file tree
Showing 24 changed files with 6,100 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/rso_sample_apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on: [push, pull_request]

name: rso_sample_apps_rust

jobs:
check:
name: check
runs-on: ubuntu-latest
container: rust:latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
working-directory: ./sample_apps/rso_sample_apps/rust

test:
name: test
runs-on: ubuntu-latest
container: rust:latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
working-directory: ./sample_apps/rso_sample_apps/rust

fmt:
name: fmt
runs-on: ubuntu-latest
container: rust:latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
working-directory: ./sample_apps/rso_sample_apps/rust

clippy:
name: clippy
runs-on: ubuntu-latest
container: rust:latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: cargo clippy -- -D warnings
working-directory: ./sample_apps/rso_sample_apps/rust
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MacOS
.DS_Store

.idea
# NodeJS
node_modules

Expand Down
16 changes: 16 additions & 0 deletions sample_apps/rso_sample_apps/rust/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Compiled files
/target

# Configuration file
/config.yml

# TLS files
*.cert
*.key

# Ignore IDE related files
*.idea
*.vscode

# Ignore .DS_Store on macOS
.DS_Store
Loading

0 comments on commit 8a27a03

Please sign in to comment.