File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ This project parallelizes API calls across repositories and forks using **Tokio*
3838## 🧰 Installation & Setup
3939
4040### 1. Prerequisites
41- - Rust (v1.70 +)
41+ - Rust (v1.87.0 +)
4242- A GitHub Personal Access Token (with ` read:public_repo ` permissions)
4343- ` cargo ` build tool
4444
@@ -98,13 +98,13 @@ cargo run
9898## 📊 Example Output
9999
100100``` bash
101- Fetching stats for FIWARE/context.Orion-LD ...
102- [FIWARE/context.Orion-LD ] Stargazers: 20 , Developers: 10 , Total Users: 45
103- Fetching stats for FIWARE/tutorials.Step-by-Step ...
104- [FIWARE/tutorials.Step-by-Step ] Stargazers: 35 , Developers: 15 , Total Users: 60
101+ Fetching stats for telefonicaid/fiware-orion ...
102+ [telefonicaid/fiware-orion ] Stargazers: 216 , Developers: 107 , Total Users: 480
103+ Fetching stats for eProsima/Fast-DDS ...
104+ [eProsima/Fast-DDS ] Stargazers: 2610 , Developers: 178 , Total Users: 3272
105105
106- Total FIWARE users: 90
107- Total FIWARE developers: 22
106+ Total FIWARE users: 10389
107+ Total FIWARE developers: 751
108108```
109109
110110## 🌐 Web Endpoint
@@ -124,7 +124,8 @@ github-stats-collector/
124124├── Cargo.toml
125125├── src/
126126│ └── main.rs
127- ├── repos.json
127+ ├── data/
128+ │ └── repos.json
128129├── .env
129130├── README.md
130131└── ROADMAP.md
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ async fn main() {
3939 println ! ( "Total FIWARE developers: {}" , all_contributors. len( ) ) ;
4040
4141 // Simple Axum web server (optional)
42- // let app = Router::new().route("/", get(|| async { "GitHub Stats Collector Running 🚀" }));
43- // let listener = tokio::net::TcpListener::bind("0.0.0.0:8080").await.unwrap();
44- // axum::serve(listener, app).await.unwrap();
42+ let app = Router :: new ( ) . route ( "/" , get ( || async { "GitHub Stats Collector Running 🚀" } ) ) ;
43+ let listener = tokio:: net:: TcpListener :: bind ( "0.0.0.0:8080" ) . await . unwrap ( ) ;
44+ axum:: serve ( listener, app) . await . unwrap ( ) ;
4545}
4646
4747async fn get_statistics ( client : & Client , repo : & str ) -> ( HashSet < String > , HashSet < String > ) {
You can’t perform that action at this time.
0 commit comments