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

New Rust re-write #27

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
758a6e5
Cargo init
Stridsvagn69420 Oct 24, 2022
610fa1b
Lib files WIP. Will add private submodule for the server.
Stridsvagn69420 Oct 24, 2022
174cb79
More basic files and a lot of TODOs
Stridsvagn69420 Oct 25, 2022
1032fcf
Structs added. Trait impls wip. Main library docs wip.
Stridsvagn69420 Oct 25, 2022
4bdf5ec
Workflows and README.md
Stridsvagn69420 Oct 25, 2022
739246b
Checklist #2 to #5 done
Stridsvagn69420 Oct 26, 2022
54b2020
Owner and Metadata finished
Stridsvagn69420 Oct 26, 2022
31ab7d9
Config done basically
Stridsvagn69420 Nov 1, 2022
dfae17b
Hostinfo done, including generation!!
Stridsvagn69420 Nov 1, 2022
a4b1a40
Cleaner Hostinfo code and docs
Stridsvagn69420 Nov 1, 2022
faf564e
Middleware and redirects
Stridsvagn69420 Nov 1, 2022
7fd6412
Lib part basically done. Routes can only be set in the binary itself.
Stridsvagn69420 Nov 3, 2022
31461bc
Rust 1.65 and let-else is awesome
Stridsvagn69420 Nov 6, 2022
c08a02b
Add shared state for Actix-Web routes
Stridsvagn69420 Nov 13, 2022
a6fdf19
Add multi-root option
Stridsvagn69420 Nov 14, 2022
4bafa1e
Added hostinfo route and route utils
Stridsvagn69420 Nov 15, 2022
ee9b9cd
Version bump
Stridsvagn69420 Nov 15, 2022
7ec7065
i forgor borrow
Stridsvagn69420 Nov 15, 2022
2615a06
Better Metadata structure
Stridsvagn69420 Nov 24, 2022
137b920
Fix doctest
Stridsvagn69420 Nov 25, 2022
fb89f40
Add Artists to State Cache as well
Stridsvagn69420 Nov 25, 2022
bf2062c
Account struct finished along with wrapper functions
Stridsvagn69420 Nov 25, 2022
862811f
More Account stuff
Stridsvagn69420 Nov 25, 2022
307473a
Add CORS everywhere middleware
Stridsvagn69420 Nov 25, 2022
5cb32cd
Switch password hashing to Argon2
Stridsvagn69420 Nov 25, 2022
c16c6c2
Small improvements to keep this alive
Stridsvagn69420 Nov 28, 2022
ec29995
Album indexing route done
Stridsvagn69420 Dec 3, 2022
e89b77f
Album finder done and route updated
Stridsvagn69420 Dec 3, 2022
b49ab10
Structural tuning and server binary
Stridsvagn69420 Dec 4, 2022
90b5a12
Small fixes and better code
Stridsvagn69420 Dec 4, 2022
1ceca0a
Timestamp logging and more macros
Stridsvagn69420 Dec 4, 2022
b79cfa3
Artists live in central artists.json file now
Stridsvagn69420 Dec 4, 2022
036e323
"Verbose error output"
Stridsvagn69420 Dec 4, 2022
e1da6b5
CLI tool wip, server message wip, logger wip, file routes wip
Stridsvagn69420 Dec 28, 2022
0dcabf0
CLI tool wip, server message wip, logger wip. file routes DONE
Stridsvagn69420 Dec 29, 2022
669d0dc
Partial content doesn't work. Time to revert.
Stridsvagn69420 Dec 29, 2022
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
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "gomod"
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "daily"
30 changes: 30 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build (Linux)

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 3'

jobs:
build-linux:
name: x86_64-unknown-linux-gnu
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Compile Cyrkensia on Linux
run: cargo build --release --target=x86_64-unknown-linux-gnu
30 changes: 30 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build (Windows)

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 3'

jobs:
build-windows:
name: x86_64-pc-windows-msvc
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Compile Cyrkensia on Windows
run: cargo build --release --target=x86_64-pc-windows-msvc
57 changes: 57 additions & 0 deletions .github/workflows/cargo-clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# rust-clippy is a tool that runs a bunch of lints to catch common
# mistakes in your Rust code and help improve your Rust code.
# More details at https://github.com/rust-lang/rust-clippy
# and https://rust-lang.github.io/rust-clippy/

name: Clippy Tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '20 20 * * 4'

jobs:
cargo-clippy:
name: Cargo Clippy
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Install clippy-sarif and sarif-fmt
run: cargo install clippy-sarif sarif-fmt

- name: cargo clippy
run:
cargo clippy
--all-features
--message-format=json -- --deny warnings | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true

- name: cargo test
run:
cargo test
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# Go
/build/
/cyrkensia.exe
/cyrkensia

# Test
test.json
# Cargo
/target/
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"rust-lang.rust-analyzer",
"bungcip.better-toml"
]
}
Loading