diff --git a/.github/workflows/rust.yml b/.github/workflows/master_build.yml similarity index 97% rename from .github/workflows/rust.yml rename to .github/workflows/master_build.yml index 393517b..ac9e06d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/master_build.yml @@ -1,4 +1,4 @@ -name: Rust Build +name: Master build on: push: diff --git a/README.md b/README.md index 66ee01e..a8d58f4 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # KSOX-SERVER -[![GitHub Workflow Status Rust Build](https://github.com/visoftsolutions/ksox-server/actions/workflows/rust.yml/badge.svg)](https://github.com/visoftsolutions/ksox-server/actions/workflows/rust.yml) +[![GitHub Workflow Status Rust Build](https://github.com/visoftsolutions/ksox-server/actions/workflows/master_build.yml/badge.svg)](https://github.com/visoftsolutions/ksox-server/actions/workflows/master_build.yml) ![Version](https://img.shields.io/badge/version-0.1.0-blue) ## 🚀 Quick Start Guide diff --git a/core/models/Cargo.toml b/core/models/Cargo.toml index a372ea0..577ef50 100644 --- a/core/models/Cargo.toml +++ b/core/models/Cargo.toml @@ -7,14 +7,14 @@ description = { workspace = true } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -uuid = { workspace = true } num-bigint = { version = "0.4.4", features = ["serde"] } -serde = { version = "1.0.190", features = ["derive"] } -num-rational = "0.4" num-decimal = "0.2.5" -num-traits = "0.2.17" num-derive = "0.4.1" +num-rational = "0.4" +num-traits = "0.2.17" +serde = { version = "1.0.190", features = ["derive"] } +uuid = { workspace = true } [dev-dependencies] proptest = "1.3.1" -serde_json = "1.0.108" \ No newline at end of file +serde_json = "1.0.108" diff --git a/core/models/src/fraction.rs b/core/models/src/fraction.rs index 0e34fec..b4fbdd1 100644 --- a/core/models/src/fraction.rs +++ b/core/models/src/fraction.rs @@ -387,7 +387,7 @@ mod tests { const TESTS_CASES: u32 = 1000; const FRACTION_BYTES: usize = 4; - + proptest! { #![proptest_config(ProptestConfig::with_cases(TESTS_CASES))] #[test] @@ -395,7 +395,7 @@ mod tests { assert_eq!(fraction, serde_json::from_str(&serde_json::to_string(&fraction).unwrap()).unwrap()); } } - + const ACCURACY: usize = 1000; proptest! { #![proptest_config(ProptestConfig::with_cases(TESTS_CASES))] diff --git a/core/models/src/lib.rs b/core/models/src/lib.rs index 5688b1d..6fdf8c1 100644 --- a/core/models/src/lib.rs +++ b/core/models/src/lib.rs @@ -1,15 +1,15 @@ mod asset; mod balance; +mod fraction; mod network; mod order; mod trade; mod user; -mod fraction; pub use asset::AssetRaw; pub use balance::BalanceRaw; +pub use fraction::Fraction; pub use network::Network; pub use order::OrderRaw; pub use trade::TradeRaw; pub use user::UserRaw; -pub use fraction::Fraction;