Skip to content

Commit

Permalink
[#108] v0.9.0 버전 조정 및 문서화 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
myyrakle committed Sep 2, 2024
1 parent 0638894 commit 8ae986f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
# rupring

![](https://img.shields.io/badge/language-Rust-red) ![](https://img.shields.io/badge/version-0.8.2-brightgreen) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/myyrakle/rupring/blob/master/LICENSE)
![](https://img.shields.io/badge/language-Rust-red) ![](https://img.shields.io/badge/version-0.9.0-brightgreen) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/myyrakle/rupring/blob/master/LICENSE)

spring on rust

## Get Started

required dependency list
```toml
rupring = "0.8.2"
tokio = { version = "1", features = ["full"] }
rupring = "0.9.0"
serde = { version="1.0.193", features=["derive"] }
```

Expand All @@ -34,13 +33,8 @@ pub fn echo(request: rupring::Request) -> rupring::Response {
rupring::Response::new().text(request.body)
}

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let app = rupring::RupringFactory::create(RootModule {});

app.listen(3000).await?;

Ok(())
fn main() {
rupring::run(RootModule {})
}
```

Expand Down
2 changes: 1 addition & 1 deletion rupring/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rupring"
version = "0.8.2"
version = "0.9.0"
edition = "2021"
license = "MIT"
authors = ["myyrakle <[email protected]>"]
Expand Down
9 changes: 2 additions & 7 deletions rupring/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ pub fn echo(request: rupring::Request) -> rupring::Response {
rupring::Response::new().text(request.body)
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let app = rupring::RupringFactory::create(RootModule {});
app.listen(3000).await?;
Ok(())
fn main() {
rupring::run(RootModule {})
}
```
Expand Down
2 changes: 1 addition & 1 deletion rupring_example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"

[dependencies]
rupring={ version="0.8.1", path="../rupring" }
rupring={ version="0.9.0", path="../rupring" }
serde = { version="1.0.193", features=["derive"] }

0 comments on commit 8ae986f

Please sign in to comment.