backend.rs: library for frontends.rs until split occurs
This commit is contained in:
parent
cffe1525e0
commit
caa6f98caa
@ -7,10 +7,6 @@ edition = "2024"
|
||||
name = "frontend"
|
||||
path = "src/frontend.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "backend"
|
||||
path = "src/backend.rs"
|
||||
|
||||
[dependencies]
|
||||
git2 = "0.20.2"
|
||||
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
|
||||
|
@ -79,7 +79,7 @@ impl TryFrom<Commit<'_>> for GitCommit {
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct GitEntry {
|
||||
pub struct GitEntry {
|
||||
last_commit: GitCommit,
|
||||
path: String,
|
||||
}
|
||||
@ -178,9 +178,3 @@ impl GitRepo {
|
||||
Ok(entries)
|
||||
}
|
||||
}
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
GitRepo::open(Path::new("/var/mintee/repos/silt/pingus").to_path_buf())?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user