{"id":15694120,"url":"https://github.com/jaywcjlove/sgo-rs","last_synced_at":"2025-05-08T20:35:26.379Z","repository":{"id":250398562,"uuid":"834361321","full_name":"jaywcjlove/sgo-rs","owner":"jaywcjlove","description":"Static file serving and directory listing","archived":false,"fork":false,"pushed_at":"2025-01-09T03:33:25.000Z","size":61,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-27T15:22:25.563Z","etag":null,"topics":["cli","http","http-server","rust","server","service"],"latest_commit_sha":null,"homepage":"","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/jaywcjlove.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"ko_fi":"jaywcjlove","buy_me_a_coffee":"jaywcjlove","custom":["https://www.paypal.me/kennyiseeyou","https://jaywcjlove.github.io/#/sponsor"]}},"created_at":"2024-07-27T03:52:06.000Z","updated_at":"2024-09-02T01:40:46.000Z","dependencies_parsed_at":"2025-04-18T19:49:22.963Z","dependency_job_id":"81f55eae-a835-40b1-81d0-02f2a4bb06d2","html_url":"https://github.com/jaywcjlove/sgo-rs","commit_stats":{"total_commits":64,"total_committers":2,"mean_commits":32.0,"dds":0.015625,"last_synced_commit":"e8e4d1fb1ecb77881dc722a524091493af345ba1"},"previous_names":["jaywcjlove/serve-rs"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fsgo-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fsgo-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fsgo-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaywcjlove%2Fsgo-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaywcjlove","download_url":"https://codeload.github.com/jaywcjlove/sgo-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252664340,"owners_count":21784900,"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","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":["cli","http","http-server","rust","server","service"],"created_at":"2024-10-03T18:52:46.511Z","updated_at":"2025-05-08T20:35:26.349Z","avatar_url":"https://github.com/jaywcjlove.png","language":"Rust","funding_links":["https://ko-fi.com/jaywcjlove","https://buymeacoffee.com/jaywcjlove","https://www.paypal.me/kennyiseeyou","https://jaywcjlove.github.io/#/sponsor"],"categories":[],"sub_categories":[],"readme":"[English](./README.md) • \u003cruby\u003e [sgo](https://github.com/jaywcjlove/sgo) \u003crt\u003eNodejs\u003c/rt\u003e\u003c/ruby\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/jaywcjlove/sgo-rs\"\u003e\n    \u003cimg alt=\"sgo logo\" src=\"https://github.com/user-attachments/assets/ec07f2ce-03cd-4d04-ab1b-f0bf6cf6d334\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/jaywcjlove/sgo-rs/actions/workflows/ci.yml\"\u003e\n    \u003cimg alt=\"CI\" src=\"https://github.com/jaywcjlove/sgo-rs/actions/workflows/ci.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/jaywcjlove/sgo-rs/releases\"\u003e\n    \u003cimg alt=\"Releases\" src=\"https://img.shields.io/github/release/jaywcjlove/sgo-rs.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n这是一款工具，旨在帮助你为静态网站、单页应用程序或静态文件提供服务，无论它们是在你的设备上还是在本地网络上。它是 [sgo](https://github.com/jaywcjlove/sgo) 的 Rust 版本，并基于 Rust 重新编写。\n\n此外，它还提供了一个整洁的界面，用于列出目录内容：\n\n\u003cimg width=\"557\" alt=\"sgo\" src=\"https://github.com/user-attachments/assets/76797b83-0ff4-45da-bacf-114c1af1f16d\"\u003e\n\n\u003cbr /\u003e\n\n### 使用\n\n```sh\nsgo -d target -p 3001\n```\n\n### Command help\n\n```sh\n$ sgo --help\n\nsgo - Static file serving and directory listing\n\nUsage: sgo [OPTIONS]\n\nOptions:\n  -d, --dir \u003cDIRECTORY\u003e     Sets the directory to serve files from [default: ./static]\n  -p, --port \u003cPORT\u003e         Sets the port number to listen on [default: 3030]\n  -L, --no-request-logging  Do not log any request information to the console\n  -C, --cors                Enable CORS, sets `Access-Control-Allow-Origin` to `*`\n  -h, --help                Print help\n  -V, --version             Print version\n```\n\n\u003cbr /\u003e\n\n### 开发\n\n```sh\ncargo run   # 运行服务器，在浏览器中打开 http://127.0.0.1:3030/\ncargo build # 编译项目\ncargo build --release # 编译输出发布版本\n\ncargo build --target aarch64-apple-darwin --release\ncargo build --target aarch64-apple-ios --release\ncargo build --target aarch64-apple-ios-sim --release\n```\n\n编译输出目录\n\n```rs\n└── target\n    ├── debug\n    │   └── sgo // build 输出的二进制文件\n    └── release\n        └── sgo // release 输出的二进制文件\n```\n\n\u003cbr /\u003e\n\n### License\n\nMIT © [Kenny Wong](https://wangchujiang.com/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywcjlove%2Fsgo-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaywcjlove%2Fsgo-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaywcjlove%2Fsgo-rs/lists"}