Skip to content

Commit 947a4e5

Browse files
committed
nit
1 parent dcb8726 commit 947a4e5

File tree

5 files changed

+18
-656
lines changed

5 files changed

+18
-656
lines changed

Cargo.lock

Lines changed: 0 additions & 205 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,18 @@ name ="json-gen-actix"
44
version="0.1.0"
55

66
[dependencies]
7-
actix-web ={ version="4.9.0", features=["compress-gzip"] }
8-
fake ={ version="3.1.0", features=["derive"] }
7+
actix-web ={ version="4.9.0", default-features=false, features=["compress-gzip", "macros"] }
8+
fake ={ version="3.1.0", default-features=false, features=["derive"] }
99
num_cpus ="1.16.0"
1010
parking_lot="0.12.3"
1111
rand ="0.8.5"
1212
rand_chacha="0.3.1"
13-
rayon ="1.10.0"
13+
rayon ={ version="1.10.0", default-features=false }
1414
serde ={ version="1.0.217", features=["derive"] }
15+
16+
[profile.release]
17+
codegen-units=1
18+
lto ="thin"
19+
opt-level ="z"
20+
panic ="abort"
21+
strip =true

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
# Actix JSON Generator
22

3-
A very primative random JSON generator
3+
A primative random JSON generator
44

55
- Can query with pretty print
66
- Supported sizes are KB to TB
77

88
```sh
99
curl "http://127.0.0.1:8080/generate?size=100mb&pretty=true"
10+
11+
curl "http://127.0.0.1:8080/generate?size=1500mb"
1012
```
13+
14+
- The `pretty` parameter enables pretty-printed output (optional).
15+
- The `size` parameter specifies the target size of the generated content.

0 commit comments

Comments
 (0)