chore: bump dependencies

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ic1fda520473e53d1a584a3dda63ffda86a6a6964
This commit is contained in:
raf 2026-02-12 23:22:54 +03:00
commit 4fc05e71e7
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 362 additions and 94 deletions

View file

@ -12,7 +12,12 @@ use crate::{
};
const CURSEFORGE_API_BASE: &str = "https://api.curseforge.com/v1";
/// CurseForge game version type ID for loader versions (e.g., "fabric",
/// "forge")
const LOADER_VERSION_TYPE_ID: i32 = 68441;
/// CurseForge relation type ID for "required dependency" (mod embeds or
/// requires another mod)
const DEPENDENCY_RELATION_TYPE_REQUIRED: u32 = 3;
pub struct CurseForgePlatform {
client: Client,
@ -194,7 +199,7 @@ impl CurseForgePlatform {
required_dependencies: cf_file
.dependencies
.iter()
.filter(|d| d.relation_type == 3)
.filter(|d| d.relation_type == DEPENDENCY_RELATION_TYPE_REQUIRED)
.map(|d| d.mod_id.to_string())
.collect(),
size: cf_file.file_length,