1
0
Fork 1
mirror of https://github.com/MingweiSamuel/Riven.git synced 2025-04-17 03:13:16 -07:00
Commit graph

545 commits

Author SHA1 Message Date
Mingwei Samuel
0cb0e77f50 fixup! champion.rs build.rs proof of concept 2025-03-19 16:42:27 -07:00
Mingwei Samuel
d9ad34a45a champion.rs build.rs proof of concept
conditional compilation

optional `autoupdate` feature

use feature instead of cfg to avoid recompiling everything

wip

fix include

models/spec wip

generate models.rs

store generated rust in git

update autogen feature deps

grab specs from online

fixes

route

everything except endpoints now

cleanup codegen

preserve schema map order

cleanup meta.rs

final codegen in build.rs

cleanup endpoints codegen

build and docs tidying

document build info

for clippy

cfgs actually working now, oops

cleanup bare urls for rustdoc

newtype enum fix

rephrase docs
2025-03-19 16:39:42 -07:00
Mingwei Samuel
aa74790e8b Release 2.66.0 2025-03-18 17:06:15 -07:00
Mingwei Samuel
88fd078b3d
fix & test docs, cleanup CI, cleanup Cargo.toml, regen ()
- Set `RUST_BACKTRACE = "full"`, `RUST_LOG = "info,riven=debug"` in
`.cargo/config.toml` instead of everywhere
- Remove unmaintained `actions-rs` from CI
- Use `#[doc = include_str!(...)]` for including README.md in lib.rs,
instead of awkward codegen
- Update README.md features: `metrics`, clarify `log`/`tracing`,
development testing note
- `Cargo.toml` add `[target.'cfg(docsrs_deps)'.dependencies]` for
doc-linked deps.
- `Cargo.toml` do not include example proxy in publish
- Cleanup `.vscode/settings.json`
- Regen for `crate::consts::TournamentRegion` back in use
2025-03-18 16:31:14 -07:00
Mingwei Samuel
7630f02c30 docs: fix RiotApi reference to old summoner_by_name endpoint 2025-03-15 16:09:46 -07:00
Mingwei Samuel
3e6ccfcd81 feat: allow endpoints to use other endpoint/module DTOs
Regen for `lol-rso-match-v1`
2025-03-12 17:10:38 -07:00
Mingwei Samuel
0aa31d53aa style: add tracing as an explicit feature 2025-03-12 13:45:51 -07:00
Mingwei Samuel
4361dd3add Release 2.65.0
for `eserde` feature
2025-03-12 11:16:38 -07:00
Mingwei Samuel
c91e0b51d8 test: add more match tests
From 
From https://github.com/RiotGames/developer-relations/issues/939#issuecomment-2164112865
From https://github.com/RiotGames/developer-relations/issues/939#issuecomment-2164119529
2025-03-12 09:54:56 -07:00
Mingwei Samuel
ab80137e6f
feat: eserde feature for better maintenance ()
Using [`eserde`](https://github.com/mainmatter/eserde) at least for
testing makes it much, much easier to find all the schema changes Riot
makes every other Wednesday, and therefore makes this and
https://github.com/MingweiSamuel/riotapi-schema easier to maintain.

Example of error output:
```rust
Failed to get match JP1_498473890: Riot API request failed after 0 retries with status code Some(200).
Deserialization error: Something went wrong during deserialization:
- info.participants[0].PlayerScore2: invalid type: floating point `732.5479125976562`, expected i32 at line 1 column 1795
- info.participants[0].PlayerScore3: invalid type: floating point `0.3532763719558716`, expected i32 at line 1 column 1829
- info.participants[0].PlayerScore4: invalid type: floating point `-0.8999999761581421`, expected i32 at line 1 column 1864
- info.participants[0].PlayerScore5: invalid type: floating point `1428.712158203125`, expected i32 at line 1 column 1897
- info.participants[0].PlayerScore6: invalid type: floating point `3546.9150390625`, expected i32 at line 1 column 1928
- info.participants[0].PlayerScore7: invalid type: floating point `848.3316650390625`, expected i32 at line 1 column 1961
- info.participants[0].PlayerScore8: invalid type: floating point `23.0013484954834`, expected i32 at line 1 column 1993
- info.participants[0].missions.playerScore2: invalid type: floating point `732.5479125976562`, expected i32 at line 1 column 6427
- info.participants[0].missions.playerScore3: invalid type: floating point `0.3532763719558716`, expected i32 at line 1 column 6461
- info.participants[0].missions.playerScore4: invalid type: floating point `-0.8999999761581421`, expected i32 at line 1 column 6496
- info.participants[0].missions.playerScore5: invalid type: floating point `1428.712158203125`, expected i32 at line 1 column 6529
- info.participants[0].missions.playerScore6: invalid type: floating point `3546.9150390625`, expected i32 at line 1 column 6560
- info.participants[0].missions.playerScore7: invalid type: floating point `848.3316650390625`, expected i32 at line 1 column 6593
- info.participants[0].missions.playerScore8: invalid type: floating point `23.0013484954834`, expected i32 at line 1 column 6625
```
2025-03-12 09:46:19 -07:00
Mingwei Samuel
a8c457fad7 Update Cargo.lock for cargo audit security 2025-03-07 18:54:22 -08:00
Mingwei Samuel
66b1bc0533 Release 2.64.0 2025-03-06 17:47:46 -08:00
Mingwei Samuel
28b560078e regen for match-v5 playerScore changes 2025-03-06 17:47:35 -08:00
Mingwei Samuel
a7afd8b2be Release 2.63.0 2025-02-24 21:58:53 -08:00
Mingwei Samuel
64cc55ec4d regen for val-match-v1 optional fields for aborted games 2025-02-24 21:58:53 -08:00
Mingwei Samuel
c7b5de6e54 use tracing for dev logging 2025-02-24 21:58:53 -08:00
Mingwei Samuel
1a00d7277b Set/increase ~2.0 sec default when Retry-After header missing due to https://github.com/RiotGames/developer-relations/issues/1050 2025-02-24 21:58:53 -08:00
Mingwei Samuel
0c1acf922a fix RUST_LOG in CI 2025-02-24 21:58:53 -08:00
Mingwei Samuel
bebcae9dae regen for feats fields 2025-02-24 21:14:16 -08:00
Mingwei Samuel
959ce4a12d regen for new puuid fields/method 2025-02-24 20:51:20 -08:00
Mingwei Samuel
09b3a46388 ci: commit Cargo.lock for the sake of MSRV testing 2025-02-21 14:32:54 -08:00
Mingwei Samuel
f6be1e87a8 Release 2.62.0 2025-01-31 10:50:48 -08:00
Mingwei Samuel
100b9f9afc Regen for 2025-01-22 patch 2025-01-31 10:49:35 -08:00
Mingwei Samuel
40634e44e6 test: new TFT revival game 2025-01-31 10:42:45 -08:00
Mingwei Samuel
343d26bdb7 release 2.61.1 2025-01-15 12:21:59 -08:00
Mingwei Samuel
561139e91f
chore: set msrv, min dependency versions, fix ()
Fix 

* Check MSRV in CI
* Lower MSRV to 1.71.1 by gating `allow(..., reason = "...")`
* Sets all min dependency crate versions needed by riven, via `-Z
direct-minimal-versions`
* Adds `test-min-deps.bash` script to run `-Z direct-minimal-versions`
* Removes underutilized `scan_fmt` dependency, replaces with simple
string manipulation code
2025-01-15 12:21:05 -08:00
Mingwei Samuel
bb8bd229f0 Release 2.61.0 2025-01-13 11:56:49 -08:00
Mingwei Samuel
9ede8f23bb test: wasm cleanup deprecated static 2025-01-13 11:56:07 -08:00
Mingwei Samuel
29a2819341 style: token bucket dead code false positive 2025-01-13 11:37:06 -08:00
Mingwei Samuel
318ac138c5 simplify metrics into async fn 2025-01-13 11:31:36 -08:00
Mingwei Samuel
9718cebcfc ci: --all-features on lints 2025-01-13 11:31:26 -08:00
Mingwei Samuel
bcbb39a3d3 feat: add route to tracing spans, use tracing in testing 2025-01-13 10:38:54 -08:00
Mingwei Samuel
257d2ee7b6 test: add metrics to test-full.bash 2025-01-13 10:04:33 -08:00
Brian Morin (Blitz)
7e774ccfe5
feat: add basic metrics support ()
* First draft of metrics feature
* Use an async block per PR feedback
2025-01-13 09:47:24 -08:00
Mingwei Samuel
c43d606747 release 2.60.0 2025-01-10 16:34:49 -08:00
Mingwei Samuel
15aab41276 regen for val-content totems fix 2025-01-10 16:34:49 -08:00
Mingwei Samuel
979c1bc10d update tests for val-content 2025-01-10 16:34:49 -08:00
Mingwei Samuel
3c90e0ef3a regen fix version 2025-01-10 15:55:35 -08:00
Mingwei Samuel
3fd5955492 release 2.59.0 2025-01-10 15:54:43 -08:00
Mingwei Samuel
623dce2280 regen for season updates 2025-01-10 15:54:27 -08:00
Mingwei Samuel
5b70c9203c update league tests for regen 2025-01-10 15:45:55 -08:00
Mingwei Samuel
cc2f419dfb add/update league-v4 tests 2025-01-10 15:40:19 -08:00
Mingwei Samuel
0885faefcf Add EUW switfplay match (failing) 2025-01-10 15:22:24 -08:00
Mingwei Samuel
a6983720d8 Release 2.58.0 2025-01-08 11:05:37 -08:00
Mingwei Samuel
0fcf46ac47 Consolidate SG2 tests 2025-01-07 11:03:14 -08:00
Mingwei Samuel
b897047b5c regen for SG2 unification, new clash PUUID endpoint 2025-01-07 11:03:05 -08:00
Mingwei Samuel
19c328e520 cleanups for clippy 2024-12-19 09:54:52 -08:00
Mingwei Samuel
a2e2b6ed6c style: format 2024-11-05 23:52:50 -08:00
Mingwei Samuel
a7f72cd21a style: cleanups for clippy 2024-11-03 22:46:47 -08:00
Mingwei Samuel
78c88a0a3f Release 2.57.0 2024-11-03 22:23:50 -08:00