feat: scaffold Cargo workspace with idfoto-core and idfoto-cli
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
target/
|
||||||
|
.superpowers/
|
||||||
6
Cargo.toml
Normal file
6
Cargo.toml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
[workspace]
|
||||||
|
resolver = "2"
|
||||||
|
members = [
|
||||||
|
"crates/idfoto-core",
|
||||||
|
"crates/idfoto-cli",
|
||||||
|
]
|
||||||
17
crates/idfoto-cli/Cargo.toml
Normal file
17
crates/idfoto-cli/Cargo.toml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
[package]
|
||||||
|
name = "idfoto-cli"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
description = "CLI for idfoto password manager"
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "idfoto"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
idfoto-core = { path = "../idfoto-core" }
|
||||||
|
clap = { version = "4", features = ["derive"] }
|
||||||
|
anyhow = "1"
|
||||||
|
rpassword = "5"
|
||||||
|
arboard = "3"
|
||||||
|
dirs = "5"
|
||||||
3
crates/idfoto-cli/src/main.rs
Normal file
3
crates/idfoto-cli/src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("idfoto v0.1.0");
|
||||||
|
}
|
||||||
18
crates/idfoto-core/Cargo.toml
Normal file
18
crates/idfoto-core/Cargo.toml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[package]
|
||||||
|
name = "idfoto-core"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
description = "Core library for idfoto password manager"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
thiserror = "2"
|
||||||
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
serde_json = "1"
|
||||||
|
argon2 = "0.5"
|
||||||
|
chacha20poly1305 = "0.10"
|
||||||
|
rand = "0.8"
|
||||||
|
sha2 = "0.10"
|
||||||
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
||||||
|
image = { version = "0.25", default-features = false, features = ["jpeg"] }
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
1
crates/idfoto-core/src/error.rs
Normal file
1
crates/idfoto-core/src/error.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
// Error types will be filled in Task 2
|
||||||
1
crates/idfoto-core/src/lib.rs
Normal file
1
crates/idfoto-core/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub mod error;
|
||||||
Reference in New Issue
Block a user