Files
markbase/markbase-core/Cargo.toml
Warren 55db79cb8d Archive Module Phase 1: 核心框架搭建完成
实现内容:
 archive模块完整架构(10个文件,约900行)
 ArchiveProcessor trait统一接口
 ProcessorRegistry插件式架构
 FormatDetector格式自动检测
 ArchiveConfig配置管理系统
 Warning警告系统(RAR/XZ/7z争议格式)
 Zip Slip/Zip Bomb安全防护
 核心格式stub(ZIP/TAR/GZIP等9种)
 可选格式stub(RAR/XZ/7z等3种)
 测试框架基础

支持的格式:
核心格式(默认启用):ZIP, TAR, GZIP, ZSTD, BZIP2, LZ4, TAR.GZ, TAR.BZ2, TAR.ZST(9种)
可选格式(默认禁用):RAR(法律风险), XZ(外部依赖), 7z(库不稳定)(3种)
总计:12种压缩格式

安全特性:
- Zip Slip防护(路径遍历攻击)
- Zip Bomb防护(解压比率限制)
- 文件大小限制
- 法律风险警告(RAR专利)

下一步:Phase 2 - 核心格式完整实现(ZIP/TAR/GZIP处理器)
2026-06-10 17:21:42 +08:00

58 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "markbase-core"
version = "0.2.0"
edition = "2021"
[dependencies]
# === 核心压缩库Phase 1基础===
zip = "0.6" # ZIP格式稳定版本
tar = "0.4.46" # TAR格式
flate2 = "1.1" # GZIP格式已有
anyhow = "1"
axum = { version = "0.7", features = ["macros"] }
bcrypt = "0.16"
chrono = { version = "0.4", features = ["serde"] }
clap = { version = "4", features = ["derive"] }
dav-server = "0.11"
filetree = { path = "../filetree" }
futures-util = "0.3"
log = "0.4"
env_logger = "0.11"
markbase-webdav = { path = "../markbase-webdav" }
pulldown-cmark = "0.12"
rusqlite = { version = "0.32", features = ["bundled"] }
sled = "1.0.0-alpha.124"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sha2 = "0.10"
hmac = "0.12"
base64 = "0.22"
tokio = { version = "1", features = ["full"] }
tokio-postgres = "0.7"
russh = "0.61.2"
russh-keys = "0.50.0-beta.7"
russh-sftp = "2.3.0"
ssh2 = "0.9.4"
ssh-key = "0.7.0-rc.10"
rand = "0.8"
axum-extra = { version = "0.9", features = ["multipart"] }
tokio-util = { version = "0.7", features = ["io"] }
toml = "0.8"
uuid = { version = "1", features = ["v4"] }
dashmap = "6.1"
md5 = "0.8"
adler = "1.0"
byteorder = "1.5"
x25519-dalek = "2.0"
ed25519-dalek = { version = "2.0", features = ["rand_core"] }
aes = "0.8"
ctr = "0.9"
[dev-dependencies]
tempfile = "3.12"
[[bin]]
name = "markbase-core"
path = "src/main.rs"