{"id":30203038,"url":"https://github.com/vimkim/file-stat.rs","last_synced_at":"2025-08-13T11:14:32.360Z","repository":{"id":255722705,"uuid":"853470879","full_name":"vimkim/file-stat.rs","owner":"vimkim","description":"tokio-based file stat server that handles parallel requests","archived":false,"fork":false,"pushed_at":"2024-09-06T18:23:40.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-06T21:49:01.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vimkim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-06T18:11:51.000Z","updated_at":"2024-09-06T18:23:44.000Z","dependencies_parsed_at":"2024-09-06T21:49:09.253Z","dependency_job_id":"0e5f618c-223a-45de-acf0-001a16c43fd6","html_url":"https://github.com/vimkim/file-stat.rs","commit_stats":null,"previous_names":["vimkim/file-stat.rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vimkim/file-stat.rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Ffile-stat.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Ffile-stat.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Ffile-stat.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Ffile-stat.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vimkim","download_url":"https://codeload.github.com/vimkim/file-stat.rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vimkim%2Ffile-stat.rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270228714,"owners_count":24548892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-13T11:14:00.698Z","updated_at":"2025-08-13T11:14:32.340Z","avatar_url":"https://github.com/vimkim.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File Stat Server in Rust\n\nA demo server to learn rust concurrency and async operations with tokio. \n\nYou should prepare a large random file (5 - 10 MB) to test this.\n\nThe client queries the word count and line count of the file to the server.\n\n\n![image](https://github.com/user-attachments/assets/db33d5c6-a2b7-4079-bb0a-ceb374125db6)\n\n![image](https://github.com/user-attachments/assets/f357bf77-57e5-418e-b32f-f1a77310a48c)\n\n\n\n### prepare\n\n```bash\nseq 10000 \u003e large.txt\n```\n\n### basic usage\n\n```\n# server\ncargo run\n```\n\n```\n# client\ncargo run \u003cfilename\u003e \u003creq_num\u003e\n```\n\n### Have fun\n\n```bash\nseq 1 20 | xargs -I {} -P 20 target/debug/file-stat-client \"/large-file.txt\" {}\n\n# or\n\nparallel -j 20 target/debug/file-stat-client \"/large-file.txt\" ::: {1..20}\n```\n\nThe results will let you understand the basics of rust concurrency.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Ffile-stat.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvimkim%2Ffile-stat.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvimkim%2Ffile-stat.rs/lists"}