From ce24c8eba15166a258ee2ee71a341a68c67272f4 Mon Sep 17 00:00:00 2001 From: Natty Date: Fri, 29 Sep 2023 16:56:59 +0200 Subject: [PATCH] Created a project for the MMM parser --- Cargo.lock | 8 ++++++++ Cargo.toml | 2 ++ magnetar_mmm_parser/Cargo.toml | 9 +++++++++ magnetar_mmm_parser/README.md | 5 +++++ magnetar_mmm_parser/src/lib.rs | 0 5 files changed, 24 insertions(+) create mode 100644 magnetar_mmm_parser/Cargo.toml create mode 100644 magnetar_mmm_parser/README.md create mode 100644 magnetar_mmm_parser/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index b9d58ac..5bb3ee8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1603,6 +1603,14 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "mmm_parser" +version = "0.2.0" +dependencies = [ + "nom", + "thiserror", +] + [[package]] name = "nom" version = "7.1.3" diff --git a/Cargo.toml b/Cargo.toml index 704be05..6eb6a4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ members = [ "fe_calckey", "magnetar_common", "magnetar_sdk", + "magnetar_mmm_parser", "core" ] @@ -36,6 +37,7 @@ hyper = "0.14" js-sys = "0.3" log = "0.4" miette = "5.9" +nom = "7" percent-encoding = "2.2" redis = "0.23" reqwest = "0.11" diff --git a/magnetar_mmm_parser/Cargo.toml b/magnetar_mmm_parser/Cargo.toml new file mode 100644 index 0000000..3620931 --- /dev/null +++ b/magnetar_mmm_parser/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "mmm_parser" +version.workspace = true +edition.workspace = true +license = "MIT OR Apache-2.0" + +[dependencies] +thiserror = { workspace = true } +nom = { workspace = true } \ No newline at end of file diff --git a/magnetar_mmm_parser/README.md b/magnetar_mmm_parser/README.md new file mode 100644 index 0000000..92dff9b --- /dev/null +++ b/magnetar_mmm_parser/README.md @@ -0,0 +1,5 @@ +# MMM + +Magnetar {marinated, modified} Markdown? + +#TODO: Finish docs \ No newline at end of file diff --git a/magnetar_mmm_parser/src/lib.rs b/magnetar_mmm_parser/src/lib.rs new file mode 100644 index 0000000..e69de29