Skip to content

Commit

Permalink
update r
Browse files Browse the repository at this point in the history
eadme example
  • Loading branch information
SamuelBonilla committed Dec 5, 2022
1 parent edaf93e commit 6e386a5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "graphul"
version = "0.4.4"
version = "0.4.5"
edition = "2021"
license = "MIT"
categories = ["asynchronous", "network-programming", "web-programming::http-server"]
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ Listed below are some of the common examples. If you want to see more code examp

## 🛫 Graphul vs most famous frameworks out there

<img alt="Graphul" width="600" src="./img/compare.png">
<img alt="Graphul" width="700" src="./img/compare.png">

## 📖 Context

```rust
use graphul::{http::Methods, Context, Graphul};

#[tokio::main]
async fn main() {
let mut app = Graphul::new();
Expand All @@ -65,13 +67,9 @@ async fn main() {

let name = c.params("name");
let country = c.query("country");
let ip = c.ip();

format!(
"My name is {}, I'm from {}, my IP is {}",
name,
country,
c.ip()
)
format!("My name is {name}, I'm from {country}, my IP is {ip}",)
});

app.run("127.0.0.1:8000").await;
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pub const VERSION: &str = "0.4.4";
pub const VERSION: &str = "0.4.5";

0 comments on commit 6e386a5

Please sign in to comment.