{"id":50495808,"url":"https://github.com/noble-gase/oganesson-rs","last_synced_at":"2026-06-02T07:02:07.703Z","repository":{"id":282037699,"uuid":"946342947","full_name":"noble-gase/oganesson-rs","owner":"noble-gase","description":"[氡-Rn] Rust Web开发脚手架","archived":false,"fork":false,"pushed_at":"2026-05-29T06:46:29.000Z","size":249,"stargazers_count":22,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-29T08:27:27.073Z","etag":null,"topics":["actix-web","api","axum","rust","salvo","web"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/rnx","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/noble-gase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-11T01:50:37.000Z","updated_at":"2026-05-29T06:46:35.000Z","dependencies_parsed_at":"2025-07-11T11:18:57.558Z","dependency_job_id":"1a68f5bd-5cdb-47a8-812f-0c5c40f2e06c","html_url":"https://github.com/noble-gase/oganesson-rs","commit_stats":null,"previous_names":["noble-gase/rn","noble-gase/oganesson-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/noble-gase/oganesson-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noble-gase%2Foganesson-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noble-gase%2Foganesson-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noble-gase%2Foganesson-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noble-gase%2Foganesson-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/noble-gase","download_url":"https://codeload.github.com/noble-gase/oganesson-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/noble-gase%2Foganesson-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33810343,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"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":["actix-web","api","axum","rust","salvo","web"],"created_at":"2026-06-02T07:02:05.169Z","updated_at":"2026-06-02T07:02:07.690Z","avatar_url":"https://github.com/noble-gase.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oganesson-rs\n\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/oganesson-rs.svg?style=for-the-badge\u0026color=fc8d62\u0026logo=rust\" height=\"20\"\u003e](https://crates.io/crates/oganesson-rs)\n[\u003cimg alt=\"MIT\" src=\"http://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge\" height=\"20\"\u003e](http://opensource.org/licenses/MIT)\n\n[鿫-Oganesson] Rust Web开发脚手架，支持 `actix-web`、 `axum` 和 `salvo` 框架，并支持「单应用」和「多应用」模式\n\n## 安装\n\n```shell\ncargo install oganesson-rs\n```\n\n## 特点\n\n- DB使用 [sqlx](https://github.com/launchbadge/sqlx)\n- Redis使用 [redis-rs](https://github.com/redis-rs/redis-rs)\n- 日志使用 [tracing](https://github.com/tokio-rs/tracing)\n- 配置使用 [config-rs](https://github.com/mehcode/config-rs)\n- 命令行使用 [clap](https://github.com/clap-rs/clap)\n- 异步运行时使用 [tokio](https://github.com/tokio-rs/tokio)\n- 参数验证器使用 [validator](https://github.com/Keats/validator)\n- 支持 Prometheus Metrics 和 Request 中间件\n- 包含 TraceId、认证、请求日志、Panic捕获 中间件\n- 简单好用的 API Result 统一输出方式\n\n## 创建项目\n\n### 单应用\n\n```shell\n# actix-web\nog new # 在当前目录初始化项目\nog new --name demo # 创建demo项目\n\n# axum\nog new --axum # 在当前目录初始化项目\nog new --name demo --axum # 创建demo项目\n\n# salvo\nog new --salvo # 在当前目录初始化项目\nog new --name demo --salvo # 创建demo项目\n\n.\n├── Cargo.toml\n├── Dockerfile\n├── app/\n│   ├── Cargo.toml\n│   ├── config.toml\n│   └── src/\n│       ├── cmd/\n│       ├── handler/\n│       ├── middleware/\n│       ├── router/\n│       ├── service/\n│       └── main.rs\n├── infra/\n│   ├── Cargo.toml\n│   └── src/\n│       ├── core/\n│       ├── middleware/\n│       ├── status/\n│       ├── util/\n│       └── lib.rs\n└── repo/\n    ├── Cargo.toml\n    └── src/\n        ├── dao/\n        ├── schema/\n        └── lib.rs\n\n```\n\n### 多应用\n\n```shell\n# actix-web\nog new --app foo --app bar # 在当前目录初始化项目\nog new --name demo --app foo --app bar # 创建demo项目\n\n# axum\nog new --app foo --app bar --axum # 在当前目录初始化项目\nog new --name demo --app foo --app bar --axum # 创建demo项目\n\n# salvo\nog new --app foo --app bar --salvo # 在当前目录初始化项目\nog new --name demo --app foo --app bar --salvo # 创建demo项目\n\n.\n├── Cargo.toml\n├── Dockerfile.foo\n├── Dockerfile.bar\n├── app/\n│   ├── foo/\n│   │   ├── Cargo.toml\n│   │   ├── config.toml\n│   │   └── src/\n│   │       ├── cmd/\n│   │       ├── handler/\n│   │       ├── middleware/\n│   │       ├── router/\n│   │       ├── service/\n│   │       └── main.rs\n│   └── bar/\n│       ├── Cargo.toml\n│       ├── config.toml\n│       └── src/\n│           ├── ...\n│           └── main.rs\n├── infra/\n│   ├── Cargo.toml\n│   └── src/\n│       ├── core/\n│       ├── middleware/\n│       ├── status/\n│       ├── util/\n│       └── lib.rs\n└── repo/\n    ├── Cargo.toml\n    └── src/\n        ├── dao/\n        ├── schema/\n        └── lib.rs\n```\n\n## 创建应用\n\n\u003e 多应用项目适用，需在项目根目录执行（即：`Cargo.toml` 所在目录）\n\n```shell\n# actix-web\nog app --name foo --name bar\n\n# axum\nog app --name foo --name bar --axum\n\n# salvo\nog app --name foo --name --salvo bar\n\n.\n├── Cargo.toml\n├── Dockerfile.foo\n├── Dockerfile.bar\n├── app/\n│   ├── foo/\n│   │   ├── Cargo.toml\n│   │   ├── config.toml\n│   │   └── src/\n│   │       ├── cmd/\n│   │       ├── handler/\n│   │       ├── middleware/\n│   │       ├── router/\n│   │       ├── service/\n│   │       └── main.rs\n│   └── bar/\n│       ├── Cargo.toml\n│       ├── config.toml\n│       └── src/\n│           ├── ...\n│           └── main.rs\n├── infra/\n│   ├── Cargo.toml\n│   └── src/\n│       ├── ...\n│       └── lib.rs\n└── repo/\n    ├── Cargo.toml\n    └── src/\n        ├── ...\n        └── lib.rs\n```\n\n**Enjoy 😊**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoble-gase%2Foganesson-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoble-gase%2Foganesson-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoble-gase%2Foganesson-rs/lists"}