From 6c7204ac770d95a83841363eec00cab9d9dbe8e5 Mon Sep 17 00:00:00 2001 From: Marcus Cveticanin Date: Wed, 20 Nov 2024 09:57:54 +0100 Subject: [PATCH] Updating lib.rs and Cargo.toml --- Cargo.lock | 12 ++++++++++++ njord/Cargo.toml | 1 + njord/src/lib.rs | 3 +++ 3 files changed, 16 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index ca13f3e3..fbca2841 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1294,6 +1294,18 @@ dependencies = [ "hashbrown 0.15.0", ] +[[package]] +name = "mariadb" +version = "0.1.0" +dependencies = [ + "njord", + "njord_derive", + "reqwest", + "serde", + "serde_json", + "tokio", +] + [[package]] name = "memchr" version = "2.7.1" diff --git a/njord/Cargo.toml b/njord/Cargo.toml index f50b7659..9986dcfb 100644 --- a/njord/Cargo.toml +++ b/njord/Cargo.toml @@ -40,6 +40,7 @@ sqlite = ["dep:rusqlite"] mysql = ["dep:mysql"] oracle = ["dep:oracle"] mssql = ["dep:tiberius", "dep:tokio", "dep:tokio-util"] +mariadb = ["dep:mysql"] [[test]] name = "sqlite_tests" diff --git a/njord/src/lib.rs b/njord/src/lib.rs index c6c8bd2f..d73942ac 100644 --- a/njord/src/lib.rs +++ b/njord/src/lib.rs @@ -45,3 +45,6 @@ pub mod oracle; #[cfg(feature = "mssql")] pub mod mssql; + +#[cfg(feature = "mariadb")] +pub mod mariadb;