Skip to content
This repository was archived by the owner on Mar 14, 2026. It is now read-only.

Commit 0862d29

Browse files
authored
feat(release): improvements
* feat: renovate * fix: deserlise for authdata + version bump * feat: ci & cd * fix: resource exhaustion vulnerability leads to ddos * feat: vault creddentials * fix: updated version for actix * feat: main rs changed to oauth * docs: inproved readme fix: rust doc getting mad at rustdoc all * fix: readme to make it more easier to read on code blocks * feat: serialize to auth data * fix: serialize for authdata * chore: switched to bsd licence don't care if they make money off it just don't use the same name * chore: removed licence header from readme * chore: converted to this error for error handling & removed message public const * feat: async optimized to avoid lifetime issues * feat: contributing guide * feat: renew bearer fix: device code stuct inside to be non public * chore: added features to minimize the library * fix: unused import issue & documentation * feat: contribute section * chore: moved pr checklist to pr template * chore: made rust analyzer to have the renew feature * chore: made doc theme to be ayu * fix: env to be the secrets in github * fix: tests
1 parent 9d0076f commit 0862d29

21 files changed

Lines changed: 574 additions & 1050 deletions

.env.vault

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#/--------------------------------------------------/
55

66
# development
7-
DOTENV_VAULT_DEVELOPMENT="4keQQwt4rwtyi3QH47QAmcotXJJnoLer1OhrUkKlRJHyh2f1FVc5xxZgmQ6XSfXa32zox3GS75d7ann3et4AZm+hi9Rvkg8WLZZllJOHb6Y0DOhd/3aS8lzCXUEFbbJp2GZZETiasVGOjzTCg8glnnJBih64SHNLQIgl8ZFzCq5gBVk27qY+dsLajysYAx77VroBChmviG8g0AIPrLC8rNRk/xFX"
8-
DOTENV_VAULT_DEVELOPMENT_VERSION=3
7+
DOTENV_VAULT_DEVELOPMENT="0iMiGkIXvbFcX3waXqdbCt0x7t2+tN2uG2cCUpoHzbDR5LvgbJunJboEfuhPMkfq/tNhsjEIwQTvzpvKHSbeV/dFLDMuh9NegtJMzbIBKWdtaAPUEbHBahKz12AEopgCoGNk6K6vHcEUpDiC1Sv3NYsmTwZq3QSY6DyobD2mt33JVjrKS76JzfRSyZhjlBkmkr5r5MOUSZthWZz4n7bDEe4="
8+
DOTENV_VAULT_DEVELOPMENT_VERSION=4
99

1010
# ci
1111
DOTENV_VAULT_CI="1m4hq9GofXLaePzhX9B1xu3WK3KfdZUSWIuv6LDqMfsNO41nhiGeQgeiFsInWgiLTlKTi6BYtnNjrdcj/b198wxqx5K8KMsD4eJrQ5c="

.github/pr_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!-- What does this pr do, What does it inprove if so specify, fixes performance or other and more. -->
2+
3+
4+
5+
6+
7+
8+
9+
## Checklist
10+
11+
- [ ] I have used the [conventional commit specification](https://www.conventionalcommits.org/en/v1.0.0/)
12+
13+
- [ ] I have tested/benchmark my code to prove it better than other solutions
14+
15+
- [ ] My solution hasn't been done by someone else prior to me making a PR

.github/workflows/check.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Pull Request Check
2+
on:
3+
pull_request:
4+
jobs:
5+
test:
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macOS-latest]
10+
rust: [stable, nightly]
11+
steps:
12+
- uses: hecrj/setup-rust-action@v2
13+
with:
14+
rust-version: ${{ matrix.rust }}
15+
- uses: actions/checkout@master
16+
- name: Run tests
17+
run: cargo test --verbose
18+
env:
19+
Client_ID: ${{secrets.ClientID}}
20+
Client_Secret: ${{secrets.ClientSecret}}

.github/workflows/deploy-crate.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to Crates
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
test:
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
12+
rust: [stable, nightly]
13+
steps:
14+
- uses: hecrj/setup-rust-action@v2
15+
with:
16+
rust-version: ${{ matrix.rust }}
17+
- uses: actions/checkout@master
18+
- name: Run tests
19+
run: cargo test --verbose
20+
env:
21+
Client_ID: ${{secrets.ClientID}}
22+
Client_Secret: ${{secrets.ClientSecret}}
23+
publish:
24+
needs: ["test"]
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: hecrj/setup-rust-action@v2
28+
with:
29+
rust-version: stable
30+
- uses: actions/checkout@master
31+
- name: Cargo Publish
32+
run: cargo publish --token ${{secrets.CRATESIO_TOKEN}}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Weekly Test.
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
rust: [stable, nightly]
12+
steps:
13+
- uses: hecrj/setup-rust-action@v2
14+
with:
15+
rust-version: ${{ matrix.rust }}
16+
- uses: actions/checkout@master
17+
- name: Run tests
18+
run: cargo test --verbose
19+
env:
20+
Client_ID: ${{secrets.ClientID}}
21+
Client_Secret: ${{secrets.ClientSecret}}

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"editor.tokenColorCustomizations": {
3-
"comments": "",
4-
"textMateRules": []
5-
}
2+
"rust-analyzer.cargo.features": ["renew"]
63
}

Cargo.lock

Lines changed: 55 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)