feat: Initialize UPFS project with login and file upload functionality

- Add Cargo.toml with dependencies for reqwest, serde, tokio, and clap.
- Implement login functionality to retrieve authentication token.
- Create a module for handling file uploads with multipart support.
- Set up command-line interface for file upload operations.
- Include error handling for file existence and HTTP requests.
This commit is contained in:
Yakumo Hokori
2025-12-11 22:55:26 +08:00
commit ab635e19eb
8 changed files with 1822 additions and 0 deletions

11
Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "upfs"
version = "0.1.0"
edition = "2024"
[dependencies]
reqwest = { version = "0.11", features = ["json", "multipart"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.0", features = ["full"] }
clap = { version = "4.0", features = ["derive"] }