Skip to content

Commit

Permalink
add readme, update cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
museun committed Oct 22, 2020
1 parent 34b6446 commit a12d95f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
15 changes: 9 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[package]
name = "json_to_rust"
version = "0.2.0"
authors = ["museun <[email protected]>"]
edition = "2018"
license = "0BSD"
readme = "README.md"
authors = ["museun <[email protected]>"]
description = "turns sample json into rust structs"
documentation = "https://docs.rs/json_to_rust/latest/json_to_rust/"
edition = "2018"
license = "0BSD"
name = "json_to_rust"
readme = "README.md"
repository = "https://github.com/museun/json_to_rust"
version = "0.2.0"

[dependencies]
anyhow = "1.0.33"
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# json_to_rust

this allows you to generate rust from sample json

```
json_to_rust: 0.1.0
json_to_rust: 0.2.0
description:
pipe some json to this and it'll generate some rust for you.
usage:
< foo.json | json_to_rust -j json_object -n MyStruct > out.rs
cat foo.json | json_to_rust -j json_object -n MyStruct > out.rs
flags:
-u, --make-unit-tests generate unit tests
Expand Down Expand Up @@ -57,6 +61,7 @@ flags:
-v, --version show the current version
-h, --help show this message
```

License: 0BSD
4 changes: 2 additions & 2 deletions src/bin/json_to_rust/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description:
pipe some json to this and it'll generate some rust for you.
usage:
< foo.json | json_to_rust -j json_object -n MyStruct > out.rs
cat foo.json | json_to_rust -j json_object -n MyStruct > out.rs
flags:
-u, --make-unit-tests generate unit tests
Expand Down Expand Up @@ -53,7 +53,7 @@ description:
pipe some json to this and it'll generate some rust for you.
usage:
< foo.json | json_to_rust -j json_object -n MyStruct > out.rs
cat foo.json | json_to_rust -j json_object -n MyStruct > out.rs
flags:
-u, --make-unit-tests generate unit tests
Expand Down

0 comments on commit a12d95f

Please sign in to comment.