diff --git a/README.md b/README.md index 2c6a461..7253fb7 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ fn main() { serde = "1.0" serde_derive = "1.0" serde_json = "1.0" -json_typegen = "0.5" +json_typegen = "0.6" ``` The sample json can also come from local or remote files: diff --git a/json_typegen/Cargo.toml b/json_typegen/Cargo.toml index 255df06..134509b 100644 --- a/json_typegen/Cargo.toml +++ b/json_typegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_typegen" -version = "0.5.0" +version = "0.6.0" authors = ["Erik Vesteraas "] license = "MIT/Apache-2.0" description = "Procedural macro that generates Rust types from JSON samples" @@ -16,7 +16,7 @@ edition = "2018" travis-ci = { repository = "evestera/json_typegen" } [dependencies] -json_typegen_shared = { path = "../json_typegen_shared", version = "0.5" } +json_typegen_shared = { path = "../json_typegen_shared", version = "0.6" } [dev-dependencies] serde = "1.0" diff --git a/json_typegen/src/lib.rs b/json_typegen/src/lib.rs index 218bd8a..8bf0e5d 100644 --- a/json_typegen/src/lib.rs +++ b/json_typegen/src/lib.rs @@ -22,7 +22,7 @@ //! serde = "1.0" //! serde_derive = "1.0" //! serde_json = "1.0" -//! json_typegen = "0.5" +//! json_typegen = "0.6" //! ``` //! //! The sample json can also come from local or remote files, like so: @@ -68,4 +68,4 @@ use json_typegen_shared::{codegen_from_macro_input}; #[proc_macro] pub fn json_typegen(input: proc_macro::TokenStream) -> proc_macro::TokenStream { codegen_from_macro_input(&input.to_string()).unwrap().parse().unwrap() -} \ No newline at end of file +} diff --git a/json_typegen_cli/Cargo.toml b/json_typegen_cli/Cargo.toml index 1ef97db..e50e9e1 100644 --- a/json_typegen_cli/Cargo.toml +++ b/json_typegen_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_typegen_cli" -version = "0.5.0" +version = "0.6.0" authors = ["Erik Vesteraas "] license = "MIT/Apache-2.0" description = "Command line utility for generating Rust types from JSON samples" @@ -14,7 +14,7 @@ edition = "2018" [dependencies] clap = "2.33.3" -json_typegen_shared = { path = "../json_typegen_shared", version = "0.5" } +json_typegen_shared = { path = "../json_typegen_shared", version = "0.6" } [[bin]] name = "json_typegen" diff --git a/json_typegen_cli/README.md b/json_typegen_cli/README.md index 91538c4..2800005 100644 --- a/json_typegen_cli/README.md +++ b/json_typegen_cli/README.md @@ -1,6 +1,7 @@ # CLI for generation of type definitions for Rust, Kotlin, TypeScript and JSON Schema from JSON -**Note**: For Rust types there is also a procedural macro interface to this code, which uses +**Note**: There is also a web interface, and for Rust types there is also a +procedural macro interface to this code, which uses the same underlying algorithm and code generation. See [the repository](https://github.com/evestera/json_typegen) for details. diff --git a/json_typegen_demo/Cargo.toml b/json_typegen_demo/Cargo.toml index bc39640..56f3bbb 100644 --- a/json_typegen_demo/Cargo.toml +++ b/json_typegen_demo/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_typegen_demo" -version = "0.5.0" +version = "0.6.0" authors = ["Erik Vesteraas "] license = "MIT/Apache-2.0" publish = false @@ -10,5 +10,5 @@ edition = "2018" serde = "1.0" serde_derive = "1.0" serde_json = "1.0" -# json_typegen = "0.5" -json_typegen = { path = "../json_typegen", version = "0.5" } +# json_typegen = "0.6" +json_typegen = { path = "../json_typegen", version = "0.6" } diff --git a/json_typegen_shared/Cargo.toml b/json_typegen_shared/Cargo.toml index 2034af5..cb073cc 100644 --- a/json_typegen_shared/Cargo.toml +++ b/json_typegen_shared/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_typegen_shared" -version = "0.5.0" +version = "0.6.0" authors = ["Erik Vesteraas "] license = "MIT/Apache-2.0" description = "Codegen from JSON samples. Not intended to be used directly. See repository for the intended crates." diff --git a/json_typegen_wasm/Cargo.toml b/json_typegen_wasm/Cargo.toml index 983350a..7adc045 100644 --- a/json_typegen_wasm/Cargo.toml +++ b/json_typegen_wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json_typegen_wasm" -version = "0.5.0" +version = "0.6.0" authors = ["Erik Vesteraas "] edition = "2018" publish = false diff --git a/json_typegen_web/package-lock.json b/json_typegen_web/package-lock.json index a1f5dfa..4c35b45 100644 --- a/json_typegen_web/package-lock.json +++ b/json_typegen_web/package-lock.json @@ -1,6 +1,6 @@ { "name": "json_typegen_web", - "version": "0.4.1", + "version": "0.6.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/json_typegen_web/package.json b/json_typegen_web/package.json index 709e515..6bb7060 100644 --- a/json_typegen_web/package.json +++ b/json_typegen_web/package.json @@ -1,7 +1,7 @@ { "author": "Erik Vesteraas ", "name": "json_typegen_web", - "version": "0.4.1", + "version": "0.6.0", "repository": "https://github.com/evestera/json_typegen", "license": "MIT", "scripts": {