- Set up project structure mirroring Go CLI architecture - Add dependencies with libsodium-sys-stable for all crypto operations - Implement core crypto module with Argon2, ChaCha20-Poly1305, and Blake2b - Create data models for accounts, files, and collections - Set up Clap-based CLI framework with account, export, and version commands - Add error handling with thiserror - Configure for static linking to create standalone binaries This establishes the foundation for converting the Ente CLI from Go to Rust, with a focus on maintaining compatibility with existing libsodium-based crypto. Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
1.1 KiB
TOML
57 lines
1.1 KiB
TOML
[package]
|
|
name = "ente-rs"
|
|
version = "0.0.1"
|
|
edition = "2024"
|
|
description = "Rust bindings and CLI for ente.io"
|
|
homepage = "https://ente.io"
|
|
repository = "https://github.com/ente-io/ente"
|
|
license = "AGPL-3.0-only"
|
|
|
|
[dependencies]
|
|
# CLI and configuration
|
|
clap = { version = "4.5", features = ["derive", "env"] }
|
|
config = "0.14"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.9"
|
|
toml = "0.8"
|
|
|
|
# Async runtime and networking
|
|
tokio = { version = "1.41", features = ["full"] }
|
|
reqwest = { version = "0.12", features = ["json", "stream"] }
|
|
futures = "0.3"
|
|
|
|
# Cryptography - ONLY libsodium (statically linked)
|
|
libsodium-sys-stable = "1.20"
|
|
base64 = "0.22"
|
|
hex = "0.4"
|
|
zeroize = { version = "1.8", features = ["derive"] }
|
|
|
|
# SRP authentication
|
|
srp = "0.6"
|
|
num-bigint = "0.4"
|
|
|
|
# Storage
|
|
sled = "0.34"
|
|
bincode = "1.3"
|
|
|
|
# Utilities
|
|
thiserror = "2.0"
|
|
anyhow = "1.0"
|
|
log = "0.4"
|
|
env_logger = "0.11"
|
|
dirs = "5.0"
|
|
chrono = "0.4"
|
|
uuid = { version = "1.11", features = ["serde", "v4"] }
|
|
rpassword = "7.3"
|
|
indicatif = "0.17"
|
|
|
|
# File operations
|
|
walkdir = "2.5"
|
|
zip = "2.2"
|
|
tempfile = "3.14"
|
|
|
|
[dev-dependencies]
|
|
mockito = "1.6"
|
|
tempdir = "0.3"
|