From e735b0bd2350033693661f83980667bf6ebbfec9 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 1422567..4f578ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1606,6 +1606,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 7841d54..e53f73c 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