Files
gitea_mirror/Cargo.toml
hak8or ed63a7496f Add initial. Generated with Claude 4.1 Opus as one-shot
Prompt;
```
Create a very minimal and simple tool written in rust which takes in a list of git URLs, and using the gitea api checks if the remote is mirrored, and if not, then create a repo migration to gitea. I want to basically create a script which can be used to ensure a list of git repos are mirrord to a gitea server.

The script should take in some command line arguments for;
 - an option to do a dry run, meaning do the check if the repo has to be mirrord, but do not initiate the actual migration
- path to a TOML configuration file (also can be supplied via an ENV variable)

The configuration file would have the following information;
 - a list of git URLs
 - an API key to be used with gitea
 - the gitea url

Ensure the script is as minimal as possible, do not use libraries if you can avoid them (except clap for CLI arguments, tracing for logging, actix for async and web interactions, reqwest for actual queries, and serde_json for json, or whatever else is common in rust). I will be invoking this tool with a systemd timer.
```
2025-09-19 19:13:57 -04:00

14 lines
372 B
TOML

[package]
name = "gitea_mirror"
version = "0.1.0"
edition = "2024"
[dependencies]
clap = { version = "4.5", features = ["derive", "env"] }
reqwest = { version = "0.12.23", features = ["json"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.35", features = ["full"] }
toml = "0.9.7"
tracing = "0.1"
tracing-subscriber = "0.3"