lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit 64ee8630e289ffd1745d5e6f890625ea82fdad72
parent a13fb31dffd213432ddd852212b8da189216f9f1
Author: triesap <tyson@radroots.org>
Date:   Fri, 22 Aug 2025 11:13:43 -0700

build: move dependencies to workspace

Diffstat:
MCargo.toml | 18++++++++++++++++++
Mcrates/core/Cargo.toml | 15++++++++-------
Mcrates/events-codec/Cargo.toml | 15++++++++-------
Mcrates/events-indexed/Cargo.toml | 11++++++-----
Mcrates/events/Cargo.toml | 15++++++++-------
Mcrates/trade/Cargo.toml | 17+++++++++--------
Arust-toolchain.toml | 3+++
7 files changed, 60 insertions(+), 34 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml @@ -3,3 +3,21 @@ members = [ "crates/*", ] resolver = "2" + +[workspace.package] +version = "0.1.0" +edition = "2024" +rust-version = "1.86.0" +license = "MIT OR Apache-2.0" + +[workspace.dependencies] +radroots-core = { path = "crates/core", version = "0.1.0", default-features = false } +radroots-events = { path = "crates/events", version = "0.1.0", default-features = false } +radroots-events-codec = { path = "crates/events-codec", version = "0.1.0", default-features = false } +radroots-trade = { path = "crates/trade", version = "0.1.0", default-features = false } + +serde = { version = "1", default-features = false, features = ["derive"] } +serde_json = { version = "1" } +rust_decimal = { version = "1", default-features = false } +rust_decimal_macros = { version = "1" } +typeshare = { version = "1" } diff --git a/crates/core/Cargo.toml b/crates/core/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "radroots-core" description = "Core value model for Radroots" -version = "0.1.0" +version.workspace = true +edition.workspace = true authors = ["Radroots Authors"] -license = "MIT OR Apache-2.0" -edition = "2021" +rust-version.workspace = true +license.workspace = true [features] default = ["std", "serde", "typeshare"] @@ -13,7 +14,7 @@ serde = ["dep:serde", "rust_decimal/serde"] typeshare = ["dep:typeshare"] [dependencies] -rust_decimal = { version = "1", default-features = false } -rust_decimal_macros = "1" -serde = { version = "1", default-features = false, features = ["derive"], optional = true } -typeshare = { version = "1", optional = true } +rust_decimal = { workspace = true, default-features = false } +rust_decimal_macros = { workspace = true } +serde = { workspace = true, optional = true } +typeshare = { workspace = true, optional = true } diff --git a/crates/events-codec/Cargo.toml b/crates/events-codec/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "radroots-events-codec" description = "Event codec layer for Radroots" -version = "0.1.0" +version.workspace = true +edition.workspace = true authors = ["Radroots Authors"] -license = "MIT OR Apache-2.0" -edition = "2021" +rust-version.workspace = true +license.workspace = true [features] default = ["std"] @@ -13,7 +14,7 @@ serde = ["dep:serde", "radroots-core/serde", "radroots-events/serde"] serde_json = ["serde", "dep:serde_json"] [dependencies] -radroots-core = { path = "../core", default-features = false } -radroots-events = { version = "0.1.0", path = "../events" } -serde = { version = "1", features = ["derive"], optional = true } -serde_json = { version = "1", optional = true } +radroots-core = { workspace = true, default-features = false } +radroots-events = { workspace = true } +serde = { workspace = true, optional = true } +serde_json = { workspace = true, optional = true } diff --git a/crates/events-indexed/Cargo.toml b/crates/events-indexed/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "radroots-events-indexed" description = "Indexed event model for Radroots" -version = "0.1.0" +version.workspace = true +edition.workspace = true authors = ["Radroots Authors"] -license = "MIT OR Apache-2.0" -edition = "2021" +rust-version.workspace = true +license.workspace = true [features] default = ["serde", "typeshare"] @@ -13,5 +14,5 @@ typeshare = ["dep:typeshare"] std = [] [dependencies] -serde = { version = "1.0", default-features = false, features = ["alloc", "derive"], optional = true } -typeshare = { version = "1", optional = true } +serde = { workspace = true, default-features = false, features = ["alloc", "derive"], optional = true } +typeshare = { workspace = true, optional = true } diff --git a/crates/events/Cargo.toml b/crates/events/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "radroots-events" description = "Domain event model for Radroots" -version = "0.1.0" +version.workspace = true +edition.workspace = true authors = ["Radroots Authors"] -license = "MIT OR Apache-2.0" -edition = "2021" +rust-version.workspace = true +license.workspace = true [features] default = ["std", "serde", "typeshare"] @@ -13,9 +14,9 @@ serde = ["dep:serde"] typeshare = ["dep:typeshare"] [dependencies] -radroots-core = { path = "../core", default-features = false, features = ["serde"] } -serde = { version = "1", default-features = false, features = ["derive"], optional = true } -typeshare = { version = "1", optional = true } +radroots-core = { workspace = true, default-features = false, features = ["serde"] } +serde = { workspace = true, optional = true } +typeshare = { workspace = true, optional = true } [dev-dependencies] -serde_json = "1" +serde_json = { workspace = true } diff --git a/crates/trade/Cargo.toml b/crates/trade/Cargo.toml @@ -1,10 +1,11 @@ [package] name = "radroots-trade" description = "Trade domain model for Radroots" -version = "0.1.0" +version.workspace = true +edition.workspace = true authors = ["Radroots Authors"] -license = "MIT OR Apache-2.0" -edition = "2021" +rust-version.workspace = true +license.workspace = true [features] default = ["std", "serde", "typeshare"] @@ -13,8 +14,8 @@ serde = ["dep:serde", "radroots-core/serde", "radroots-events/serde", "radroots- typeshare = ["dep:typeshare"] [dependencies] -radroots-core = { path = "../core", default-features = false } -radroots-events = { path = "../events", default-features = false } -radroots-events-codec = { path = "../events-codec", default-features = false } -serde = { version = "1", default-features = false, features = ["derive"], optional = true } -typeshare = { version = "1", optional = true } +radroots-core = { workspace = true, default-features = false } +radroots-events = { workspace = true, default-features = false } +radroots-events-codec = { workspace = true, default-features = false } +serde = { workspace = true, optional = true } +typeshare = { workspace = true, optional = true } diff --git a/rust-toolchain.toml b/rust-toolchain.toml @@ -0,0 +1,2 @@ +[toolchain] +channel = "1.86.0" +\ No newline at end of file