From 6a8f34098d1667581886b80caacd69aefba6ed32 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 14 Feb 2024 00:35:11 -0800 Subject: [PATCH] rename files --- Cargo.toml | 2 +- src/lib.rs | 12 +++++++++--- src/{legacy.rs => roblox_legacy.rs} | 0 src/{source.rs => source_legacy.rs} | 0 4 files changed, 10 insertions(+), 4 deletions(-) rename src/{legacy.rs => roblox_legacy.rs} (100%) rename src/{source.rs => source_legacy.rs} (100%) diff --git a/Cargo.toml b/Cargo.toml index 1faa702..f7e925f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" [features] legacy = ["dep:lazy-regex"] #roblox = [] -source = [] +#source = [] [dependencies] lazy-regex = { version = "3.1.0", optional = true } diff --git a/src/lib.rs b/src/lib.rs index 8ee012b..fec640b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,7 @@ #[cfg(feature="legacy")] -mod legacy; +mod roblox_legacy; +#[cfg(feature="legacy")] +mod source_legacy; #[cfg(feature="roblox")] mod roblox; #[cfg(feature="source")] @@ -8,8 +10,12 @@ mod source; pub mod texture; #[cfg(feature="legacy")] -pub fn legacy()->legacy::Loader{ - legacy::Loader::new() +pub fn roblox_legacy()->roblox_legacy::Loader{ + roblox_legacy::Loader::new() +} +#[cfg(feature="legacy")] +pub fn source_legacy()->source_legacy::Loader{ + source_legacy::Loader::new() } #[cfg(feature="roblox")] pub fn roblox()->roblox::Loader{ diff --git a/src/legacy.rs b/src/roblox_legacy.rs similarity index 100% rename from src/legacy.rs rename to src/roblox_legacy.rs diff --git a/src/source.rs b/src/source_legacy.rs similarity index 100% rename from src/source.rs rename to src/source_legacy.rs