Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
610 changes: 609 additions & 1 deletion Cargo.lock

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,23 @@ apalis = "1.0.0-rc.9"
apalis-postgres = "1.0.0-rc.8"
async-trait = "0.1"
axum = { version = "0.8", features = ["multipart"] }
base64 = "0.22"
boxcars = ">=0.11.3, <1.0.0"
bytes = "1"
chacha20poly1305 = "0.10"
chrono = { version = "0.4", features = ["serde"] }
flate2 = "1"
futures = "0.3"
hex = "0.4"
jsonwebtoken = "9"
mime = "0.3"
psynet = "0.1.34"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# The rlru library's Epic auth client (EGS login-code flow + EOS token
# exchange) backs the training-pack publish Epic link. `default-features =
# false` drops the CLI-only clap/webbrowser/tracing-subscriber deps.
rlru = { version = "0.1.34", default-features = false }
secrecy = "0.10"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
Expand Down
6 changes: 6 additions & 0 deletions crates/rocket-sense-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,21 @@ anyhow.workspace = true
apalis.workspace = true
apalis-postgres.workspace = true
axum.workspace = true
base64.workspace = true
boxcars.workspace = true
bytes.workspace = true
chacha20poly1305.workspace = true
chrono.workspace = true
futures.workspace = true
hex.workspace = true
jsonwebtoken.workspace = true
psynet.workspace = true
reqwest.workspace = true
rlru.workspace = true
rocket-sense-db.workspace = true
rocket-sense-egress.workspace = true
rocket-sense-storage.workspace = true
secrecy.workspace = true
serde.workspace = true
serde_json.workspace = true
sqlx.workspace = true
Expand Down
2 changes: 2 additions & 0 deletions crates/rocket-sense-server/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ mod replay_set;
mod replays;
mod spa;
mod stats;
mod training_packs;
mod users;

/// Reused by `crate::processing` to key the rank-median benchmark population on
Expand Down Expand Up @@ -86,6 +87,7 @@ fn api_v1_router(state: AppState) -> Router {
.merge(rank_trends::router())
.merge(replays::router())
.merge(stats::router())
.merge(training_packs::router())
.merge(users::router())
.with_state(state)
}
Expand Down
17 changes: 15 additions & 2 deletions crates/rocket-sense-server/src/api/openapi.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{
admin, auth, ballchasing, favorites, game_outcomes, health, leaderboards, meta, movement_stats,
player_overview, player_timeline, players, positioning_stats, possession_stats,
rank_benchmark_cohorts, rank_trends, replays, stats, users,
rank_benchmark_cohorts, rank_trends, replays, stats, training_packs, users,
};
use utoipa::{
openapi::security::{HttpAuthScheme, HttpBuilder, SecurityScheme},
Expand Down Expand Up @@ -92,6 +92,11 @@ use utoipa::{
replays::reprocess_replay,
replays::reprocess_replay_client,
replays::set_replay_ranks,
training_packs::get_epic_link,
training_packs::start_epic_link,
training_packs::complete_epic_link,
training_packs::unlink_epic_account,
training_packs::publish_training_pack,
users::get_user_profile,
),
components(
Expand Down Expand Up @@ -228,6 +233,13 @@ use utoipa::{
crate::ranks::RankSubmission,
crate::ranks::SubmittedRank,
crate::ranks::SkillSnapshot,
training_packs::EpicLinkStatusResponse,
training_packs::EpicLinkStartResponse,
training_packs::CompleteEpicLinkRequest,
training_packs::EpicLinkResponse,
training_packs::PublishTrainingPackRequest,
training_packs::PublishTrainingRoundRequest,
training_packs::PublishTrainingPackResponse,
users::UserProfileResponse,
users::UserGameIdentity,
)
Expand All @@ -243,7 +255,8 @@ use utoipa::{
(name = "users", description = "Rocket Sense user (uploader) profile endpoints"),
(name = "stats", description = "Aggregate replay statistics endpoints"),
(name = "replays", description = "Replay upload and metadata endpoints"),
(name = "replay-groups", description = "Replay group endpoints")
(name = "replay-groups", description = "Replay group endpoints"),
(name = "training-packs", description = "Epic account linking and PsyNet training pack publishing")
),
modifiers(&SecurityAddon)
)]
Expand Down
Loading
Loading