mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 21:08:48 +08:00
Add a standalone feature for escude-arc
This commit is contained in:
@@ -16,10 +16,11 @@ serde_json = "1"
|
||||
unicode-segmentation = "1.12"
|
||||
|
||||
[features]
|
||||
default = ["bgi", "circus", "escude"]
|
||||
default = ["bgi", "circus", "escude", "escude-arc"]
|
||||
bgi = []
|
||||
circus = []
|
||||
escude = ["rand"]
|
||||
escude = []
|
||||
escude-arc = ["escude", "rand"]
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows-sys = { version = "0", features = ["Win32_Globalization", "Win32_System_Diagnostics_Debug"] }
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#[cfg(feature = "escude-arc")]
|
||||
pub mod archive;
|
||||
#[cfg(feature = "escude-arc")]
|
||||
mod crypto;
|
||||
pub mod list;
|
||||
#[cfg(feature = "escude-arc")]
|
||||
mod lzw;
|
||||
pub mod script;
|
||||
|
||||
@@ -14,7 +14,7 @@ lazy_static::lazy_static! {
|
||||
Box::new(circus::script::CircusMesScriptBuilder::new()),
|
||||
#[cfg(feature = "bgi")]
|
||||
Box::new(bgi::script::BGIScriptBuilder::new()),
|
||||
#[cfg(feature = "escude")]
|
||||
#[cfg(feature = "escude-arc")]
|
||||
Box::new(escude::archive::EscudeBinArchiveBuilder::new()),
|
||||
#[cfg(feature = "escude")]
|
||||
Box::new(escude::script::EscudeBinScriptBuilder::new()),
|
||||
|
||||
Reference in New Issue
Block a user