{"id":23091550,"url":"https://github.com/chopinsky/rusty_express","last_synced_at":"2025-10-13T21:40:08.796Z","repository":{"id":57665868,"uuid":"117476723","full_name":"Chopinsky/Rusty_Express","owner":"Chopinsky","description":"A simple http-server library in Rust, which provides Express-alike APIs and emphasizes performance.","archived":false,"fork":false,"pushed_at":"2020-01-05T05:22:55.000Z","size":953,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T14:21:15.979Z","etag":null,"topics":["backend","http-server","rust","simple"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/rusty_express","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/Chopinsky.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-14T23:47:37.000Z","updated_at":"2023-07-01T09:18:53.000Z","dependencies_parsed_at":"2022-09-16T16:14:16.100Z","dependency_job_id":null,"html_url":"https://github.com/Chopinsky/Rusty_Express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Chopinsky/Rusty_Express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chopinsky%2FRusty_Express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chopinsky%2FRusty_Express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chopinsky%2FRusty_Express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chopinsky%2FRusty_Express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chopinsky","download_url":"https://codeload.github.com/Chopinsky/Rusty_Express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chopinsky%2FRusty_Express/sbom","scorecard":{"id":29399,"data":{"date":"2025-08-11","repo":{"name":"github.com/Chopinsky/Rusty_Express","commit":"ec0ecce32e7c84ce2791cbb0dcbe2ec5918ed7da"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"22 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: RUSTSEC-2020-0159","Warn: Project is vulnerable to: RUSTSEC-2022-0019 / GHSA-9g55-pg62-m8hh","Warn: Project is vulnerable to: RUSTSEC-2022-0041 / GHSA-qc84-gqf4-9926","Warn: Project is vulnerable to: RUSTSEC-2020-0070 / GHSA-5wg8-7c9q-794v / GHSA-gmv4-vmx3-x9f3 / GHSA-hj9h-wrgg-hgmx / GHSA-ppj3-7jw3-8vc4 / GHSA-vh4p-6j7g-f4j9","Warn: Project is vulnerable to: RUSTSEC-2023-0022 / GHSA-3gxf-9r58-2ghg","Warn: Project is vulnerable to: RUSTSEC-2023-0024 / GHSA-6hcf-g6gr-hhcr","Warn: Project is vulnerable to: RUSTSEC-2023-0023 / GHSA-9qwg-crg9-m2vc","Warn: Project is vulnerable to: RUSTSEC-2023-0044 / GHSA-xcf7-rvmh-g6q4","Warn: Project is vulnerable to: RUSTSEC-2023-0072","Warn: Project is vulnerable to: GHSA-q445-7m23-qrmw","Warn: Project is vulnerable to: RUSTSEC-2024-0357","Warn: Project is vulnerable to: RUSTSEC-2025-0004 / GHSA-rpmj-rpgj-qmpm","Warn: Project is vulnerable to: RUSTSEC-2022-0040 / GHSA-9qxh-258v-666c","Warn: Project is vulnerable to: RUSTSEC-2019-0035 / GHSA-mmc9-pwm7-qj5w","Warn: Project is vulnerable to: RUSTSEC-2022-0013 / GHSA-m5pq-gvj9-9vr8","Warn: Project is vulnerable to: RUSTSEC-2023-0018 / GHSA-mc8h-8q98-g5hr","Warn: Project is vulnerable to: RUSTSEC-2019-0012 / GHSA-69gw-hgj3-45m7","Warn: Project is vulnerable to: RUSTSEC-2019-0009 / GHSA-mm7v-vpv8-xfc3","Warn: Project is vulnerable to: RUSTSEC-2018-0018 / GHSA-55m5-whcv-c49c / GHSA-66p5-j55p-32r9","Warn: Project is vulnerable to: RUSTSEC-2021-0003 / GHSA-43w2-9j62-hq99","Warn: Project is vulnerable to: RUSTSEC-2022-0006 / GHSA-9hpw-r23r-xgm5","Warn: Project is vulnerable to: RUSTSEC-2020-0071 / GHSA-wcg3-cvx6-7396"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T18:41:48.689Z","repository_id":57665868,"created_at":"2025-08-14T18:41:48.689Z","updated_at":"2025-08-14T18:41:48.689Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017051,"owners_count":26085951,"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-10-13T02:00:06.723Z","response_time":61,"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":["backend","http-server","rust","simple"],"created_at":"2024-12-16T21:18:37.262Z","updated_at":"2025-10-13T21:40:08.779Z","avatar_url":"https://github.com/Chopinsky.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Rusty_Express][docsrs]\n======================\n\n[![Rusty_Express on crates.io][cratesio-image]][cratesio]\n[![Rusty_Express on docs.rs][docsrs-image]][docsrs]\n\n[cratesio]: https://crates.io/crates/rusty_express\n[cratesio-image]: https://img.shields.io/crates/v/rusty_express.svg\n[docsrs-image]: https://docs.rs/rusty_express/badge.svg\n[docsrs]: https://docs.rs/rusty_express\n\n## What is this\nThis is a simple http-server library written in Rust and provide Express-alike APIs. We know Rust\nis hard and daunting to use, so the goal of this project is to make sure your server can be easy \nto construct without fears such that you can focus on the business logic.\n\nMany of today's popular Rust-based web framework are verbose and would take efforts to learn, one will\nusually have to be familiar with advanced Rust features or API libraries in order to finish a seemingly\neasy job in other language's framework. That's why we started this project -- we want it to be easy to\nuse as a back-end technology, and provide native experience similar to Node's Express framework. That's\nwhere this project got its name -- \"Rusty Express\": a Rust based, Express-alike web framework.\n\nVersion 0.3.0+ is a major milestone, from this point on the APIs shall be mostly stable, and we\nexpect to make less, if none, break changes, but please do let us know if you've come across bugs\nthat we should fix, or have met performance bottle necks that we shall try to improve.\n\n\n## What's new in 0.4.2\n- Small fixes\n\n## Migrating from 0.2.x to 0.3.0 and beyond\n0.2.x versions are good experiments with this project. But we're growing fast with better\nfeatures and more performance enhancement! That's why we need to start the 0.3.x versions\nwith slight changes to the interface APIs. \n\nHere're what to expect when updating from 0.2.x to 0.3.0:\n\n- The route handler function's signature has changed, now the request and response objects\nare boxed! So now your route handler should have something similar to this:\n```rust\npub fn handler(req: \u0026Box\u003cRequest\u003e, resp: \u0026mut Box\u003cResponse\u003e) {\n    /// work hard to generate the response here...\n}\n```\n\n- The `StateProvider` trait is deprecated (and de-factor no-op in 0.3.0), and it will be removed in \nthe 0.3.3 release. Please switch to use the `ServerContext` features instead. You can find how to \nuse the `ServerContext` in this example: [Server with defined router](https://github.com/Chopinsky/Rusty_Express/blob/master/examples/use_router.rs)\n\n\n## How to use\nIn your project's `Cargo.toml`, add dependency:\n```cargo\n[dependencies]\nrusty_express = \"^0.3.0\"\n...\n```\n\nIn `src\\main.rs`:\n```rust\nextern crate rusty_express;\n\nuse rusty_express::prelude::*;\n\nfn main() {\n    //A http server with default thread pool size of 4\n    let mut server = HttpServer::new();\n    \n    //Change thread pool size from 8 (default) to 10.\n    server.set_pool_size(10);\n\n    //Route definition\n    server.get(RequestPath::Exact(\"/\"), handler);\n\n    //Listen to port 8080, server has started.\n    server.listen(8080);\n}\n\npub fn handler(req: \u0026Box\u003cRequest\u003e, resp: \u0026mut Box\u003cResponse\u003e) {\n    resp.send(\"Hello world from the rusty-express server!\\n\");\n    resp.status(200);\n}\n```\n\n## Examples\n- [Simple server](https://github.com/Chopinsky/Rusty_Express/blob/master/examples/simple.rs)\n- [Server with defined router](https://github.com/Chopinsky/Rusty_Express/blob/master/examples/use_router.rs)\n- [Use redirect in the router](https://github.com/Chopinsky/Rusty_Express/blob/master/examples/simple_redirect.rs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchopinsky%2Frusty_express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchopinsky%2Frusty_express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchopinsky%2Frusty_express/lists"}