3544ad5256
添加功能函数: abs_path 获取给定路径的绝对路径。 async_download 异步下载文件并保存到指定的目标路径。 download 从给定的 URL 下载文件并将其保存到指定的目标路径。 parent_exists 检查给定路径的父目录是否存在。 Signed-off-by: Jia Chao <jiac13@chinaunicom.cn>
21 lines
724 B
TOML
21 lines
724 B
TOML
[package]
|
|
name = "ccutils"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = ["Jia Chao <jiachao2130@126.com>"]
|
|
license = "MIT"
|
|
keywords = ["cc", "utils"]
|
|
include = ["src/**/*", "Cargo.toml", "README.md"]
|
|
description = "A complex toolset that include various small functions."
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
futures-util = { version = "0.3" }
|
|
indicatif = { version = "0.17" }
|
|
path-absolutize = { version = "3" }
|
|
reqwest = { version = "0.12", features = ["stream"] }
|
|
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
|
|
tracing = { version = "0.1" }
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "local-time"] }
|