diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 79b4180b..0cdb8689 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,10 +15,10 @@ Please fill in as much of the template below as you're able. ### Version ### Platform @@ -30,7 +30,7 @@ Output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows) ### Crates diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 97f2ce15..64d1ab90 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,7 +4,7 @@ the requirements below. Bug fixes and new features should include tests. -Contributors guide: https://github.com/davidpdrsn/awebframework/blob/master/CONTRIBUTING.md +Contributors guide: https://github.com/davidpdrsn/axum/blob/master/CONTRIBUTING.md --> ## Motivation diff --git a/.github/workflows/patch.toml b/.github/workflows/patch.toml index d5c2be16..0a657b31 100644 --- a/.github/workflows/patch.toml +++ b/.github/workflows/patch.toml @@ -1,4 +1,4 @@ # Patch dependencies to run all tests against versions of the crate in the # repository. [patch.crates-io] -awebframework = { path = "awebframework" } +axum = { path = "axum" } diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 21de8076..96fc2a37 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,9 +1,9 @@ -# Contributing to awebframework +# Contributing to axum :balloon: Thanks for your help improving the project! We are so happy to have you! -There are opportunities to contribute to `awebframework` at any level. It doesn't +There are opportunities to contribute to `axum` at any level. It doesn't matter if you are just getting started with Rust or are the most weathered expert, we can use your help. @@ -12,7 +12,7 @@ expert, we can use your help. This guide will help you get started. **Do not let this guide intimidate you**. It should be considered a map to help you navigate the process. -Don't know where to start? Check [issues labeled with "E-help-wanted"](https://github.com/davidpdrsn/awebframework/issues?q=is%3Aopen+is%3Aissue+label%3AE-help-wanted) or ["E-easy"](https://github.com/davidpdrsn/awebframework/issues?q=is%3Aopen+is%3Aissue+label%3AE-easy). +Don't know where to start? Check [issues labeled with "E-help-wanted"](https://github.com/davidpdrsn/axum/issues?q=is%3Aopen+is%3Aissue+label%3AE-help-wanted) or ["E-easy"](https://github.com/davidpdrsn/axum/issues?q=is%3Aopen+is%3Aissue+label%3AE-easy). You may also get help with contributing in the [`tower` Discord channel][discord], please join us! @@ -21,7 +21,7 @@ channel][discord], please join us! ## Conduct -The `awebframework` project adheres to the [Rust Code of Conduct][coc]. This +The `axum` project adheres to the [Rust Code of Conduct][coc]. This describes the _minimum_ behavior expected from all contributors. [coc]: https://github.com/rust-lang/rust/blob/master/CODE_OF_CONDUCT.md @@ -31,8 +31,8 @@ describes the _minimum_ behavior expected from all contributors. For any issue, there are fundamentally three ways an individual can contribute: 1. By opening the issue for discussion: For instance, if you believe that you - have uncovered a bug in a `awebframework` crate, creating a new issue in the - davidpdrsn/awebframework [issue tracker][issues] is the way to report it. + have uncovered a bug in a `axum` crate, creating a new issue in the + davidpdrsn/axum [issue tracker][issues] is the way to report it. 2. By helping to triage the issue: This can be done by providing supporting details (a test case that demonstrates a bug), providing @@ -42,12 +42,12 @@ For any issue, there are fundamentally three ways an individual can contribute: 3. By helping to resolve the issue: Typically this is done either in the form of demonstrating that the issue reported is not a problem after all, or more often, by opening a Pull Request that changes some bit of something in - awebframework in a concrete and reviewable manner. + axum in a concrete and reviewable manner. **Anybody can participate in any stage of contribution**. We urge you to participate in the discussion around bugs and participate in reviewing PRs. -[issues]: https://github.com/davidpdrsn/awebframework/issues +[issues]: https://github.com/davidpdrsn/axum/issues ### Asking for General Help @@ -59,7 +59,7 @@ PR that helps others avoid the problems that you encountered. ### Submitting a Bug Report -When opening a new issue in the `awebframework` issue tracker, users will +When opening a new issue in the `axum` issue tracker, users will be presented with a [basic template][template] that should be filled in. If you believe that you have uncovered a bug, please fill out this form, following the template to the best of your ability. Do not worry if you cannot answer every @@ -104,7 +104,7 @@ workflow that ensures that the proposed changes meet the minimal quality. ## Pull Requests Pull Requests are the way concrete changes are made to the code, documentation, -and dependencies in the `awebframework` repository. +and dependencies in the `axum` repository. Even tiny pull requests (e.g., one character pull request fixing a typo in API documentation) are greatly appreciated. Before making a large change, it is @@ -225,8 +225,8 @@ perfect grammar, or exact style matches. Do not succumb to that temptation. Focus first on the most significant aspects of the change: -1. Does this change make sense for awebframework? -2. Does this change make awebframework better, even if only incrementally? +1. Does this change make sense for axum? +2. Does this change make axum better, even if only incrementally? 3. Are there clear bugs or larger scale issues that need attending to? 4. Is the commit message readable and correct? If it contains a breaking change is it clear enough? @@ -257,8 +257,8 @@ with the appropriate reason to keep the conversation flow concise and relevant. Be aware that *how* you communicate requests and reviews in your feedback can have a significant impact on the success of the Pull Request. Yes, we may land a -particular change that makes `awebframework` better, but the individual might just -not want to have anything to do with `awebframework` ever again. The goal is not +particular change that makes `axum` better, but the individual might just +not want to have anything to do with `axum` ever again. The goal is not just having good code. ### Abandoned or Stalled Pull Requests diff --git a/Cargo.toml b/Cargo.toml index 1fa21c0b..efa7cce5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,12 +4,12 @@ categories = [] # TODO description = "Web framework that focuses on ergonomics and modularity" documentation = "https://docs.rs/tower-http/0.1.0" edition = "2018" -homepage = "https://github.com/davidpdrsn/awebframework" +homepage = "https://github.com/davidpdrsn/axum" keywords = ["http", "web", "framework"] license = "MIT" -name = "awebframework" +name = "axum" readme = "README.md" -repository = "https://github.com/davidpdrsn/awebframework" +repository = "https://github.com/davidpdrsn/axum" version = "0.1.0" [features] diff --git a/README.md b/README.md index 4c983d94..48d88b60 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -# awebframework +# axum -**WARNING:** awebframework is very much still work in progress. Nothing is released +**WARNING:** axum is very much still work in progress. Nothing is released to crates.io yet and you shouldn't be using this in production. -awebframework (name pending) is a tiny web application framework that focuses on +axum (name pending) is a tiny web application framework that focuses on ergonomics and modularity. -[](https://github.com/davidpdrsn/awebframework/actions) +[](https://github.com/davidpdrsn/axum/actions) More information about this crate can be found in the [crate documentation][docs]. @@ -19,17 +19,17 @@ More information about this crate can be found in the [crate documentation][docs - Ease of use. Building web apps in Rust should be as easy as `async fn handle(Request) -> Response`. -- Solid foundation. awebframework is built on top of tower and makes it easy to +- Solid foundation. axum is built on top of tower and makes it easy to plug in any middleware from the [tower] and [tower-http] ecosystem. - Focus on routing, extracting data from requests, and generating responses. Tower middleware can handle the rest. -- Macro free core. Macro frameworks have their place but awebframework focuses +- Macro free core. Macro frameworks have their place but axum focuses on providing a core that is macro free. ## Usage example ```rust -use awebframework::prelude::*; +use axum::prelude::*; use hyper::Server; use std::net::SocketAddr; @@ -51,12 +51,12 @@ See the [crate documentation][docs] for way more examples. ## Examples -The [examples] folder contains various examples of how to use awebframework. The +The [examples] folder contains various examples of how to use axum. The [docs] also have lots of examples ## Getting Help -In the awebframework's repo we also have a [number of examples][examples] +In the axum's repo we also have a [number of examples][examples] showing how to put everything together. You're also welcome to ask in the [`#tower` Discord channel][chat] or open an [issue] with your question. @@ -64,7 +64,7 @@ showing how to put everything together. You're also welcome to ask in the :balloon: Thanks for your help improving the project! We are so happy to have you! We have a [contributing guide][guide] to help you get involved in the -awebframework project. +axum project. ## License @@ -73,13 +73,13 @@ This project is licensed under the [MIT license](LICENSE). ### Contribution Unless you explicitly state otherwise, any contribution intentionally submitted -for inclusion in awebframework by you, shall be licensed as MIT, without any +for inclusion in axum by you, shall be licensed as MIT, without any additional terms or conditions. -[examples]: https://github.com/davidpdrsn/awebframework/tree/master/examples -[docs]: https://docs.rs/awebframework/0.1.0 +[examples]: https://github.com/davidpdrsn/axum/tree/master/examples +[docs]: https://docs.rs/axum/0.1.0 [tower]: https://crates.io/crates/tower [tower-http]: https://crates.io/crates/tower-http [guide]: CONTRIBUTING.md [chat]: https://discord.gg/tokio -[issue]: https://github.com/davidpdrsn/awebframework/issues/new +[issue]: https://github.com/davidpdrsn/axum/issues/new diff --git a/examples/README.md b/examples/README.md index 22d7cd70..a588d62d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -5,7 +5,7 @@ - [`form`](../examples/form.rs) - Receiving data from an HTML `