Skip to content

Commit

Permalink
now that miniorm-macros 0.1.0 is published, updated Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
meuter committed Mar 15, 2024
1 parent dcb1b18 commit bd24320
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ repository = "https://github.com/meuter/miniorm-rs"
dotenv = "0.15.0"
iso_currency = { version = "0.4.4", features = ["serde", "with-serde"] }
itertools = "0.12.1"
miniorm-macros = { version = "0.1.0", path = "macros" }
rust_decimal = "1.34.3"
rust_decimal_macros = "1.34.2"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
sqlx = { version = "0.7.4", features = ["postgres", "macros"] }
strum = { version = "0.26.2", features = ["derive"] }
tokio = { version = "1.36.0", features = ["full"] }
miniorm-macros = { path = "./macros" }


[workspace]
members = ["examples/transactions", "examples/todo", "macros"]
2 changes: 1 addition & 1 deletion examples/todo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ repository = "https://github.com/meuter/miniorm-rs"

[dependencies]
sqlx = { version = "0.7.4", features = ["runtime-tokio", "chrono"] }
miniorm = { path = "../../" }
dotenv = "0.15.0"
tokio = { version = "1.36.0", features = ["full"] }
miniorm = { version = "0.1.0", path = "../.." }
2 changes: 1 addition & 1 deletion examples/transactions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ sqlx = { version = "0.7.4", features = [
"rust_decimal",
"runtime-tokio",
] }
miniorm = { path = "../../" }
dotenv = "0.15.0"
tokio = { version = "1.36.0", features = ["full"] }
iso_currency = { version = "0.4.4", features = ["with-serde"] }
rust_decimal = "1.34.3"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
rust_decimal_macros = "1.34.2"
miniorm = { version = "0.1.0", path = "../.." }
5 changes: 3 additions & 2 deletions examples/transactions/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use dotenv::dotenv;
use iso_currency::Currency;
use miniorm::Schema;
use rust_decimal::Decimal;
use rust_decimal_macros::dec;
use serde::{Deserialize, Serialize};
use sqlx::types::chrono::NaiveDate;
use sqlx::{types::chrono::NaiveDate, FromRow};

#[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)]
pub struct Ticker(pub String);
Expand All @@ -29,7 +30,7 @@ pub enum Operation {
Withdrawal,
}

#[derive(Clone, Debug, Eq, PartialEq, sqlx::FromRow, miniorm::Schema)]
#[derive(Clone, Debug, Eq, PartialEq, FromRow, Schema)]
pub struct Transaction {
#[column(DATE NOT NULL)]
pub date: NaiveDate,
Expand Down

0 comments on commit bd24320

Please sign in to comment.