forked from StrafesNET/map-tool
Compare commits
81 Commits
master
...
feature/ex
| Author | SHA1 | Date | |
|---|---|---|---|
| bd94520ef4 | |||
| ae19448ee8 | |||
| 4907362c71 | |||
| 43b756bf8e | |||
| 360e76177b | |||
| f17a1a86a9 | |||
| 590062f3c3 | |||
| cc4e80db8a | |||
| 8c0f46007f | |||
| 48d3fca895 | |||
| e833d4c032 | |||
| 8bd0765290 | |||
| 894584f855 | |||
| 0e1b9494c2 | |||
| 7b1b381064 | |||
| 91f452a94b | |||
| eeac376500 | |||
| d1b52b4367 | |||
| ae5a451159 | |||
| 02310c5653 | |||
| f55f9c1d55 | |||
| b561ffdfc6 | |||
| 6606d3be51 | |||
| f639047980 | |||
| 9e30f5dca7 | |||
| 8b7f034f50 | |||
| 7c1ecbf6da | |||
| 540f5253d6 | |||
| e8c73bbd95 | |||
| 1e888ebb01 | |||
| b9dccb1af5 | |||
| c6d293cc6b | |||
| a386f90f51 | |||
| 43115cbac6 | |||
| 35b5aff9a7 | |||
| 36419af870 | |||
| a7518bef46 | |||
| 6df1f41599 | |||
| 422d0a160d | |||
| 1727f9213c | |||
| afa9e7447d | |||
| ff85efa54f | |||
| fa69c53cfc | |||
| a57c228580 | |||
| 5dc69db885 | |||
| e54400a436 | |||
| e2a5edf8df | |||
| d6dd1b8abd | |||
| a2b793fcd3 | |||
| 9cb34f14c8 | |||
| bd2e3aa2d3 | |||
| 07f6053839 | |||
| 0d5b918ea1 | |||
| 20a568220a | |||
| d670d4129e | |||
| de7b0bd5cc | |||
| 01524146c7 | |||
| 45e8e415d0 | |||
| 4417bafc5c | |||
| 8553625738 | |||
| 3a3749eaeb | |||
| 53539f290b | |||
| 479dd37f53 | |||
| 34b6a869f0 | |||
| 19a455ee5e | |||
| 9904b7a044 | |||
| 6efa811eb6 | |||
| 81e4a201bd | |||
| 8fd5618af2 | |||
| 54c26d6e1e | |||
| 110ec94a08 | |||
| 980da5a6a7 | |||
| 1cd77984d4 | |||
| b0fe231388 | |||
| 5a4a39ab75 | |||
| 4c485e76e4 | |||
| 7bbb9ca24f | |||
| eff55af1b4 | |||
| 0d05cc9996 | |||
| 2a55ef90df | |||
| 1a6202ae66 |
1474
Cargo.lock
generated
1474
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
21
Cargo.toml
21
Cargo.toml
@@ -1,17 +1,28 @@
|
||||
[package]
|
||||
name = "map-tool"
|
||||
version = "0.1.0"
|
||||
version = "1.3.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.75"
|
||||
clap = { version = "4.4.2", features = ["derive"] }
|
||||
flate2 = "1.0.27"
|
||||
image = "0.24.7"
|
||||
image_dds = "0.1.1"
|
||||
lazy-regex = "3.1.0"
|
||||
rbx_binary = "0.7.1"
|
||||
rbx_dom_weak = "2.5.0"
|
||||
rbx_reflection_database = "0.2.7"
|
||||
rbx_xml = "0.13.1"
|
||||
vbsp = "0.5.0"
|
||||
vmdl = "0.1.1"
|
||||
vmt-parser = "0.1.1"
|
||||
vpk = "0.2.0"
|
||||
vtf = "0.2.1"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
strip = true
|
||||
codegen-units = 1
|
||||
#[profile.release]
|
||||
#lto = true
|
||||
#strip = true
|
||||
#codegen-units = 1
|
||||
|
||||
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Copyright (c) 2023 StrafesNET Map Tool Developers
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
||||
21
src/error.rs
21
src/error.rs
@@ -1,21 +0,0 @@
|
||||
#[derive(Debug)]
|
||||
pub struct Error {
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Error {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
|
||||
write!(f, "{}", self.message)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for Error {}
|
||||
|
||||
impl Error {
|
||||
// has to be Box<Self> to fit with the result in prelude.rs
|
||||
pub fn new(message: &str) -> Box<Self> {
|
||||
Box::new(Self {
|
||||
message: message.to_string(),
|
||||
})
|
||||
}
|
||||
}
|
||||
1637
src/main.rs
1637
src/main.rs
File diff suppressed because it is too large
Load Diff
@@ -1,19 +0,0 @@
|
||||
pub use crate::error::Error;
|
||||
|
||||
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;
|
||||
pub type StdResult<T, E> = std::result::Result<T, E>;
|
||||
|
||||
// i just wanted to mess around with macros a bit
|
||||
// so heres labelprint as a macro
|
||||
#[macro_export]
|
||||
macro_rules! lprint {
|
||||
($expr:expr) => {{
|
||||
let ___this_file = std::file!();
|
||||
let ___line = std::line!();
|
||||
// let ___column = column!();
|
||||
println!("[{}:{}] {}", ___this_file, ___line, $expr);
|
||||
}};
|
||||
($expr:expr, $($arg:tt)*) => {{
|
||||
lprint!(format!($expr, $($arg)*));
|
||||
}};
|
||||
}
|
||||
Reference in New Issue
Block a user