Move diesel as a workspace dependency
This commit is contained in:
@@ -18,4 +18,5 @@ dotenv = "0.15.0"
|
|||||||
chrono = "0.4.24"
|
chrono = "0.4.24"
|
||||||
paho-mqtt = "0.12.1"
|
paho-mqtt = "0.12.1"
|
||||||
serde = "1.0.162"
|
serde = "1.0.162"
|
||||||
serde_json = { version = "1.0.95" }
|
serde_json = { version = "1.0.95" }
|
||||||
|
diesel = { version = "2.1.0", features = ["postgres", "extras"] }
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ dotenv = { workspace = true }
|
|||||||
chrono = { workspace = true }
|
chrono = { workspace = true }
|
||||||
serde = { workspace = true }
|
serde = { workspace = true }
|
||||||
serde_json = { workspace = true }
|
serde_json = { workspace = true }
|
||||||
|
diesel = { workspace = true }
|
||||||
|
|
||||||
|
|
||||||
influxdb2 = "0.4.2"
|
influxdb2 = "0.4.2"
|
||||||
influxdb2-structmap = "0.2"
|
influxdb2-structmap = "0.2"
|
||||||
influxdb2-derive = "0.1.1"
|
influxdb2-derive = "0.1.1"
|
||||||
futures = "0.3.28"
|
futures = "0.3.28"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
diesel = { version = "2.1.0", features = ["postgres"] }
|
|
||||||
diesel-async = { version = "0.3.1", features = ["postgres"] }
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub type Point = types::point::Point;
|
|||||||
pub type MAC = types::mac::MAC;
|
pub type MAC = types::mac::MAC;
|
||||||
|
|
||||||
// DB models: for SQL with Diesel and InfluxDB and influxdb-derive
|
// DB models: for SQL with Diesel and InfluxDB and influxdb-derive
|
||||||
mod schema;
|
pub mod schema;
|
||||||
mod models {
|
mod models {
|
||||||
pub mod antenna;
|
pub mod antenna;
|
||||||
pub mod beacon_measure;
|
pub mod beacon_measure;
|
||||||
|
|||||||
@@ -6,3 +6,7 @@ edition = "2021"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
diesel = { workspace = true}
|
||||||
|
|
||||||
|
rocket = { version = "0.5.0-rc.3", features = ["json"] }
|
||||||
|
kairo-common = { path = "../kairo-common" }
|
||||||
Reference in New Issue
Block a user