Skip to content

Commit caa5f30

Browse files
authored
0.18.1 -> 0.18.2 & Update README (#154)
1 parent 8645805 commit caa5f30

File tree

2 files changed

+4
-25
lines changed

2 files changed

+4
-25
lines changed

Diff for: README.md

+3-24
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ Hello, your_name!
6767
<br>
6868

6969
## Cloudflare Workers is supported by `rt_worker` feature
70-
You can easily write Ohkami app and deploy it to Cloudflare Workers :
7170

7271
```sh
7372
npm create cloudflare ./path/to/project -- --template https://github.com/kana-rus/ohkami-templates/worker
7473
```
7574

76-
Then your `project` has `wrangler.toml`, `package.json` and
75+
Then your `project` has `wrangler.toml`, `package.json` and `src/lib.rs` with
7776

7877
`Cargo.toml`
7978
```toml
@@ -84,29 +83,9 @@ ohkami = { version = "0.18", features = ["rt_worker"] }
8483
worker = { version = "0.2.0" }
8584
```
8685

87-
`src/lib.rs`
88-
```rust,ignore
89-
use ohkami::prelude::*;
90-
91-
#[ohkami::bindings]
92-
struct Bindings;
93-
94-
#[ohkami::worker]
95-
async fn my_worker() -> Ohkami {
96-
#[cfg(feature = "DEBUG")]
97-
console_error_panic_hook::set_once();
86+
Local dev by `npm run dev` and depoly by `npm run deploy` !
9887

99-
Ohkami::new((
100-
"/".GET(|| async {"Hello, world!"}),
101-
))
102-
}
103-
```
104-
105-
You can deploy by :
106-
107-
```sh
108-
npm run deploy
109-
```
88+
( See README of the [template](https://github.com/kana-rus/ohkami-templates/tree/main/worker) for details )
11089

11190
<br>
11291

Diff for: ohkami/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ohkami"
3-
version = "0.18.1"
3+
version = "0.18.2"
44
edition = "2021"
55
authors = ["kanarus <[email protected]>"]
66
description = "Build web app in intuitive and declarative code"

0 commit comments

Comments
 (0)