From 259e86757588c08a5c789734cfd78d9b7b596823 Mon Sep 17 00:00:00 2001
From: hheik <4469778+hheik@users.noreply.github.com>
Date: Wed, 4 Sep 2024 16:08:41 +0300
Subject: [PATCH] Filename sanitization
---
src/lib.rs | 75 +++++++++++++++++++++++++++++++++++++++--------------
src/main.rs | 11 ++++----
2 files changed, 61 insertions(+), 25 deletions(-)
diff --git a/src/lib.rs b/src/lib.rs
index bbe797b..7838394 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -9,6 +9,8 @@ use yaml_rust2::Yaml;
pub const BASE_URL: &str = "http://thunderstore.io";
+pub type DependencyString = String;
+
#[derive(Debug, Clone)]
pub struct ModInfo {
pub name: String,
@@ -16,7 +18,7 @@ pub struct ModInfo {
pub version: (i64, i64, i64),
pub website_url: String,
pub enabled: bool,
- pub dependencies: Vec