{"id":13580958,"url":"https://github.com/steveklabnik/simple-server","last_synced_at":"2025-04-05T02:10:31.279Z","repository":{"id":54403917,"uuid":"96146452","full_name":"steveklabnik/simple-server","owner":"steveklabnik","description":"A simple webserver built on top of the Rust standard library and the http crate.","archived":false,"fork":false,"pushed_at":"2021-02-20T05:24:50.000Z","size":182,"stargazers_count":181,"open_issues_count":22,"forks_count":40,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-10T20:19:24.827Z","etag":null,"topics":["rust","web","webserver"],"latest_commit_sha":null,"homepage":"https://docs.rs/simple-server","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steveklabnik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-03T20:04:43.000Z","updated_at":"2024-10-10T08:04:46.000Z","dependencies_parsed_at":"2022-08-13T14:40:16.768Z","dependency_job_id":null,"html_url":"https://github.com/steveklabnik/simple-server","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveklabnik%2Fsimple-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveklabnik%2Fsimple-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveklabnik%2Fsimple-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steveklabnik%2Fsimple-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steveklabnik","download_url":"https://codeload.github.com/steveklabnik/simple-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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":["rust","web","webserver"],"created_at":"2024-08-01T15:01:56.767Z","updated_at":"2025-04-05T02:10:31.256Z","avatar_url":"https://github.com/steveklabnik.png","language":"Rust","readme":"# simple-server\n\n\u003e a crate for building a simple blocking HTTP server\n\n[![Build Status](https://travis-ci.org/steveklabnik/simple-server.svg?branch=master)](https://travis-ci.org/steveklabnik/simple-server)\n[![crates.io](https://img.shields.io/crates/v/simple-server.svg)](https://crates.io/crates/simple-server)\n\n**NOTE**: this crate has not been evaluated for security concerns. therefore, we recommend\nthat you take caution before using it in a production application.\n\n## up and running\n\nthis crate is written in [the rust programming language]. you'll need rust to run\nthis crate. you can install rust using [rustup]. `simple-server` requires that you\nuse **rust version 1.20+**.\n\nto get this crate running locally:\n\n1. fork and clone this repository\n2. `cd simple-server`\n3. `cargo build`\n\nto use this crate in your project, add the following line to your `Cargo.toml`\nin the `[dependencies]` section:\n\n```toml\nsimple-server = \"0.3.0\"\n```\n\nto see this crate in action, check out the [examples].\n\n[the rust programming language]: https://www.rust-lang.org\n[rustup]: https://www.rustup.rs/\n[examples]: #examples\n\n## tests\n\nto test this crate locally, run:\n\n```bash\ncargo test\n```\n\n## docs\n\nthis crate has documentation. to build and open the docs locally:\n\n```bash\ncargo doc --open\n```\n\n## examples\n\nthere are several examples provided with this crate:\n\n- [server](https://github.com/steveklabnik/simple-server/blob/master/examples/server.rs)\n- [routes](https://github.com/steveklabnik/simple-server/blob/master/examples/routes.rs)\n\nto run an example:\n\n```bash\ncargo run --example \u003cname of example\u003e\n```\n\nthis crate uses the [log] crate for logging. in the example, we use the\n[env-logger] crate to display the logs. by default, [env-logger] only\nprints out error-level logs. to enable info-level logging as well, you'll\nneed to do one of the following depending on your system:\n\non Linux/OS X:\n\n```bash\nRUST_LOG=\"simple_server=info\" cargo run --example server\n```\n\non Windows PowerShell:\n\n```ps\n$env:RUST_LOG=\"simple_server=info\";\ncargo run --example server\n```\n\n[log]: https://crates.io/crates/log\n[env-logger]: https://crates.io/crates/env-logger\n\n## license\n\n`simple-server` is licensed under both the Apache2 and MIT licenses.\n","funding_links":[],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteveklabnik%2Fsimple-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteveklabnik%2Fsimple-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteveklabnik%2Fsimple-server/lists"}