From 36aa97a93e1a9b60e05e3419e0e30690e02a953b Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 19 Oct 2022 19:58:08 +0800 Subject: [PATCH] feat: rust-based `toJSON` --- .gitignore | 3 ++- to-json/Cargo.lock | 7 +++++++ to-json/Cargo.toml | 8 ++++++++ to-json/src/main.rs | 3 +++ {toJSON => toJSON-legacy}/go.mod | 0 {toJSON => toJSON-legacy}/go.sum | 0 {toJSON => toJSON-legacy}/main.go | 0 7 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 to-json/Cargo.lock create mode 100644 to-json/Cargo.toml create mode 100644 to-json/src/main.rs rename {toJSON => toJSON-legacy}/go.mod (100%) rename {toJSON => toJSON-legacy}/go.sum (100%) rename {toJSON => toJSON-legacy}/main.go (100%) diff --git a/.gitignore b/.gitignore index e629ffb..927f10c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /bin/ /build/ -**/.idea/ +/.idea/ /assets/*.txt +/to-json/target/ /cmake-build-debug/ /cmake-build-release/ diff --git a/to-json/Cargo.lock b/to-json/Cargo.lock new file mode 100644 index 0000000..3efbc0d --- /dev/null +++ b/to-json/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "to-json" +version = "0.1.0" diff --git a/to-json/Cargo.toml b/to-json/Cargo.toml new file mode 100644 index 0000000..4047338 --- /dev/null +++ b/to-json/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "to-json" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/to-json/src/main.rs b/to-json/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/to-json/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/toJSON/go.mod b/toJSON-legacy/go.mod similarity index 100% rename from toJSON/go.mod rename to toJSON-legacy/go.mod diff --git a/toJSON/go.sum b/toJSON-legacy/go.sum similarity index 100% rename from toJSON/go.sum rename to toJSON-legacy/go.sum diff --git a/toJSON/main.go b/toJSON-legacy/main.go similarity index 100% rename from toJSON/main.go rename to toJSON-legacy/main.go