diff --git a/Cargo.toml b/Cargo.toml index 04ff864a2..f68363ed7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,66 @@ members = [ "rig-fastembed", "rig-bedrock", "rig-milvus", ] + +[workspace.dependencies] +anyhow = "1.0.94" +arrow-array = "55.1" +as-any = "0.3.2" +assert_fs = "1.1.2" +async-stream = "0.3.6" +aws-config = "1.6.0" +aws-sdk-bedrockruntime = "1.77.0" +aws-smithy-types = "1.3.0" +base64 = "0.22.1" +bytes = "1.9.0" +chrono = "0.4" +convert_case = "0.6.0" +deluxe = "0.5.0" +deranged = "=0.4.0" +dotenvy = "0.15.7" +epub = "2.1.2" +ethers = "2.0.14" +fastembed = "4.9.1" +futures = "0.3.30" +glob = "0.3.1" +httpmock = "0.7.0" +indoc = "2.0.5" +lancedb = "0.21" +log = "0.4.22" +lopdf = "0.35.0" +mcp-core = "0.1.50" +mcp-core-macros = "0.1.30" +mime_guess = "2.0.5" +mongodb = "3.1.0" +neo4rs = "0.8.0" +ordered-float = "4.2.0" +pgvector = "0.4" +proc-macro2 = "1.0.87" +qdrant-client = "1.13.0" +quick-xml = "0.37.2" +quote = "1.0.37" +rayon = "1.10.0" +reqwest = { version = "0.12.15", default-features = false } +rig-derive = { version = "0.1.3", path = "rig-core/rig-core-derive" } +rusqlite = "0.32" +schemars = "0.8.16" +serde = "1.0.219" +serde_json = "1.0.140" +serde_path_to_error = "0.1.16" +sqlite-vec = "0.1" +sqlx = "0.8.3" +surrealdb = "2.1.4" +syn = "2.0.79" +term_size = "0.3.2" +testcontainers = "0.23.1" +textwrap = "0.16.1" +thiserror = "1.0.61" +tokio = "1.44.0" +tokio-rusqlite = { version = "0.6.0", default-features = false } +tokio-test = "0.4.4" +tracing = "0.1.40" +tracing-subscriber = "0.3.18" +uuid = "1.17.0" +worker = "0.5" +zerocopy = "0.8.10" +rig-core = { version = "0.13.0", path = "rig-core" } diff --git a/rig-bedrock/Cargo.toml b/rig-bedrock/Cargo.toml index dce73e2c9..17d96f711 100644 --- a/rig-bedrock/Cargo.toml +++ b/rig-bedrock/Cargo.toml @@ -7,21 +7,21 @@ readme = "README.md" description = "AWS Bedrock model provider for Rig integration." [dependencies] -rig-core = { version = "0.13.0", path = "../rig-core", features = ["image"] } -rig-derive = { path = "../rig-core/rig-core-derive", version = "0.1.3" } -serde = { version = "1.0.193", features = ["derive"] } -serde_json = "1.0.108" -schemars = "0.8.16" -tracing = "0.1.40" -aws-config = { version = "1.6.0", features = ["behavior-version-latest"] } -aws-sdk-bedrockruntime = "1.77.0" -aws-smithy-types = "1.3.0" -base64 = "0.22.1" -async-stream = "0.3.6" -uuid = { version = "1.16.0", features = ["v4"]} +rig-core = { workspace = true, features = ["image"] } +rig-derive = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +schemars = { workspace = true } +tracing = { workspace = true } +aws-config = { workspace = true, features = ["behavior-version-latest"] } +aws-sdk-bedrockruntime = { workspace = true } +aws-smithy-types = { workspace = true } +base64 = { workspace = true } +async-stream = { workspace = true } +uuid = { workspace = true, features = ["v4"] } [dev-dependencies] -anyhow = "1.0.75" -tokio = { version = "1.34.0", features = ["full"] } -tracing-subscriber = "0.3.18" -reqwest = { version = "0.12.12", features = ["json", "stream"] } +anyhow = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tracing-subscriber = { workspace = true } +reqwest = { workspace = true, features = ["json", "stream"] } diff --git a/rig-core/Cargo.toml b/rig-core/Cargo.toml index 0522a54dd..40c50efd0 100644 --- a/rig-core/Cargo.toml +++ b/rig-core/Cargo.toml @@ -15,43 +15,39 @@ doctest = false # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -reqwest = { version = "0.12.12", default-features = false, features = [ - "json", - "stream", - "multipart", -] } -serde = { version = "1.0.193", features = ["derive"] } -serde_json = "1.0.108" -tracing = "0.1.40" -futures = "0.3.29" -ordered-float = "4.2.0" -schemars = "0.8.16" -thiserror = "1.0.61" -rig-derive = { version = "0.1.3", path = "./rig-core-derive", optional = true } -glob = "0.3.1" -lopdf = { version = "0.35.0", optional = true } -epub = { version = "2.1.2", optional = true } -quick-xml = { version = "0.37.2", optional = true } -rayon = { version = "1.10.0", optional = true } -worker = { version = "0.5", optional = true } -mcp-core = { version = "0.1.50", optional = true } -bytes = "1.9.0" -async-stream = "0.3.6" -mime_guess = { version = "2.0.5" } -base64 = { version = "0.22.1" } -as-any = "0.3.2" +reqwest = { workspace = true, features = ["json", "stream", "multipart"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } +futures = { workspace = true } +ordered-float = { workspace = true } +schemars = { workspace = true } +thiserror = { workspace = true } +rig-derive = { workspace = true, optional = true } +glob = { workspace = true } +lopdf = { workspace = true, optional = true } +epub = { workspace = true, optional = true } +quick-xml = { workspace = true, optional = true } +rayon = { workspace = true, optional = true } +worker = { workspace = true, optional = true } +mcp-core = { workspace = true, optional = true } +bytes = { workspace = true } +async-stream = { workspace = true } +mime_guess = { workspace = true } +base64 = { workspace = true } +as-any = { workspace = true } [dev-dependencies] -anyhow = "1.0.75" -assert_fs = "1.1.2" -tokio = { version = "1.34.0", features = ["full"] } -tracing-subscriber = "0.3.18" -tokio-test = "0.4.4" -serde_path_to_error = "0.1.16" -base64 = "0.22.1" -mcp-core = { version = "0.1.50", features = ["sse"] } -mcp-core-macros = { version = "0.1.30" } +anyhow = { workspace = true } +assert_fs = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tracing-subscriber = { workspace = true } +tokio-test = { workspace = true } +serde_path_to_error = { workspace = true } +base64 = { workspace = true } +mcp-core = { workspace = true, features = ["sse"] } +mcp-core-macros = { workspace = true } [features] diff --git a/rig-core/rig-core-derive/Cargo.toml b/rig-core/rig-core-derive/Cargo.toml index 80779c788..e63ea3ce8 100644 --- a/rig-core/rig-core-derive/Cargo.toml +++ b/rig-core/rig-core-derive/Cargo.toml @@ -7,23 +7,23 @@ description = "Internal crate that implements Rig derive macros." repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -convert_case = { version = "0.6.0" } -deluxe = { version = "0.5.0", features = ["full"] } -indoc = "2.0.5" -proc-macro2 = { version = "1.0.87", features = ["proc-macro"] } -quote = "1.0.37" -serde_json = "1.0.108" -syn = { version = "2.0.79", features = ["full"]} +convert_case = { workspace = true } +deluxe = { workspace = true, features = ["full"] } +indoc = { workspace = true } +proc-macro2 = { workspace = true, features = ["proc-macro"] } +quote = { workspace = true } +serde_json = { workspace = true } +syn = { workspace = true, features = ["full"] } [lib] proc-macro = true [dev-dependencies] -rig-core = { path = "../../rig-core" } -serde = "1.0" -serde_json = "1.0.108" -tokio = { version = "1.44.0", features = ["full"] } -tracing-subscriber = "0.3.0" +rig-core = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tracing-subscriber = { workspace = true } [[example]] name = "simple" diff --git a/rig-eternalai/Cargo.toml b/rig-eternalai/Cargo.toml index c62b3e5a9..1f9eb1d2a 100644 --- a/rig-eternalai/Cargo.toml +++ b/rig-eternalai/Cargo.toml @@ -8,16 +8,16 @@ description = "EternalAI model provider Rig integration." repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -rig-core = { path = "../rig-core", version = "0.13.0" } -ethers = "2.0.14" -reqwest = { version = "0.12.12", features = ["json"] } -serde = { version = "1.0.193", features = ["derive"] } -serde_json = "1.0.108" -tracing = "0.1.40" -schemars = "0.8.16" -async-stream = "0.3.6" +rig-core = { workspace = true } +ethers = { workspace = true } +reqwest = { workspace = true, features = ["json"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } +schemars = { workspace = true } +async-stream = { workspace = true } [dev-dependencies] -anyhow = "1.0.75" -tokio = { version = "1.34.0", features = ["full"] } -tracing-subscriber = "0.3.18" +anyhow = { workspace = true } +tokio = { workspace = true, features = ["full"] } +tracing-subscriber = { workspace = true } diff --git a/rig-fastembed/Cargo.toml b/rig-fastembed/Cargo.toml index 7f22cf3c3..25581d967 100644 --- a/rig-fastembed/Cargo.toml +++ b/rig-fastembed/Cargo.toml @@ -8,16 +8,16 @@ description = "Rig vector store index integration for Fastembed. https://github. repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -rig-core = { path = "../rig-core", version = "0.13.0" } -serde = { version = "1.0.193", features = ["derive"] } -serde_json = "1.0.108" -tracing = "0.1.40" -schemars = "0.8.16" -fastembed = "4.9.1" +rig-core = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } +schemars = { workspace = true } +fastembed = { workspace = true } [dev-dependencies] -anyhow = "1.0.75" -tokio = { version = "1.34.0", features = ["full"] } +anyhow = { workspace = true } +tokio = { workspace = true, features = ["full"] } [[example]] name = "vector_search" diff --git a/rig-lancedb/Cargo.toml b/rig-lancedb/Cargo.toml index 271ed800f..1377863b4 100644 --- a/rig-lancedb/Cargo.toml +++ b/rig-lancedb/Cargo.toml @@ -8,20 +8,20 @@ description = "Rig vector store index integration for LanceDB." repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -lancedb = "0.21" -rig-core = { path = "../rig-core", version = "0.13.0" } -arrow-array = "55.1" -serde_json = "1.0.128" -serde = "1.0.210" -futures = "0.3.30" +lancedb = { workspace = true } +rig-core = { workspace = true } +arrow-array = { workspace = true } +serde_json = { workspace = true } +serde = { workspace = true } +futures = { workspace = true } # https://github.com/jhpratt/deranged/issues/18 -deranged = "=0.4.0" +deranged = { workspace = true } [dev-dependencies] -tokio = "1.40.0" -anyhow = "1.0.89" -httpmock = "0.7.0" +tokio = { workspace = true } +anyhow = { workspace = true } +httpmock = { workspace = true } [[example]] name = "vector_search_local_ann" diff --git a/rig-milvus/Cargo.toml b/rig-milvus/Cargo.toml index 1191303fb..01079e14d 100644 --- a/rig-milvus/Cargo.toml +++ b/rig-milvus/Cargo.toml @@ -6,16 +6,16 @@ description = "Milvus vector store implementation for the rig framework" license = "MIT" [dependencies] -reqwest = { version = "0.12.15", features = ["json"] } -rig-core = { version = "0.13.0", path = "../rig-core" } -serde = "1.0.219" -serde_json = "1.0.140" -uuid = { version = "1.17.0", features = ["v4"] } +reqwest = { workspace = true, features = ["json"] } +rig-core = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +uuid = { workspace = true, features = ["v4"] } [dev-dependencies] -anyhow = "1.0.86" -tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +anyhow = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +tracing-subscriber = { workspace = true, features = ["env-filter"] } [[example]] name = "vector_search_milvus" diff --git a/rig-mongodb/Cargo.toml b/rig-mongodb/Cargo.toml index b0fff192d..6f5893c69 100644 --- a/rig-mongodb/Cargo.toml +++ b/rig-mongodb/Cargo.toml @@ -10,19 +10,19 @@ repository = "https://github.com/0xPlaygrounds/rig" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -futures = "0.3.30" -mongodb = "3.1.0" -rig-core = { path = "../rig-core", version = "0.13.0" } -serde = { version = "1.0.203", features = ["derive"] } -serde_json = "1.0.117" -tracing = "0.1.40" +futures = { workspace = true } +mongodb = { workspace = true } +rig-core = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } [dev-dependencies] -anyhow = "1.0.86" -httpmock = "0.7.0" -testcontainers = "0.23.1" -tokio = { version = "1.38.0", features = ["macros"] } -tokio-test = "0.4.4" +anyhow = { workspace = true } +httpmock = { workspace = true } +testcontainers = { workspace = true } +tokio = { workspace = true, features = ["macros"] } +tokio-test = { workspace = true } [[example]] name = "vector_search_mongodb" diff --git a/rig-neo4j/Cargo.toml b/rig-neo4j/Cargo.toml index dbc210a1e..16efc6aeb 100644 --- a/rig-neo4j/Cargo.toml +++ b/rig-neo4j/Cargo.toml @@ -10,21 +10,21 @@ repository = "https://github.com/0xPlaygrounds/rig" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -futures = "0.3.30" -neo4rs = "0.8.0" -rig-core = { path = "../rig-core", version = "0.13.0" } -serde = { version = "1.0.203", features = ["derive"] } -serde_json = "1.0.117" -tracing = "0.1.40" +futures = { workspace = true } +neo4rs = { workspace = true } +rig-core = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } [dev-dependencies] -anyhow = "1.0.86" -tokio = { version = "1.38.0", features = ["macros"] } -textwrap = { version = "0.16.1"} -term_size = { version = "0.3.2"} -testcontainers = "0.23.1" -tracing-subscriber = "0.3.18" -httpmock = "0.7.0" +anyhow = { workspace = true } +tokio = { workspace = true, features = ["macros"] } +textwrap = { workspace = true } +term_size = { workspace = true } +testcontainers = { workspace = true } +tracing-subscriber = { workspace = true } +httpmock = { workspace = true } [[example]] name = "vector_search_simple" diff --git a/rig-postgres/Cargo.toml b/rig-postgres/Cargo.toml index 6195f3595..c979fa1b5 100644 --- a/rig-postgres/Cargo.toml +++ b/rig-postgres/Cargo.toml @@ -8,29 +8,24 @@ readme = "README.md" repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -rig-core = { path = "../rig-core", version = "0.13.0", features = ["derive"] } -serde = { version = "1.0.215", features = ["derive"] } -serde_json = "1.0.133" +rig-core = { workspace = true, features = ["derive"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } -tracing = "0.1.40" -sqlx = { version = "0.8.3", features = [ - "runtime-tokio", - "postgres", - "uuid", - "json", -] } -pgvector = { version = "0.4", features = ["sqlx"] } -uuid = { version = "1.11.0", features = ["v4", "serde"] } +tracing = { workspace = true } +sqlx = { workspace = true, features = ["runtime-tokio", "postgres", "uuid", "json"] } +pgvector = { workspace = true, features = ["sqlx"] } +uuid = { workspace = true, features = ["v4", "serde"] } [dev-dependencies] -anyhow = "1.0.94" -log = "0.4.22" -tracing-subscriber = { version = "0.3", features = ["env-filter"] } -tokio-test = "0.4.4" -tokio = { version = "1.43.0", features = ["macros", "rt-multi-thread"] } +anyhow = { workspace = true } +log = { workspace = true } +tracing-subscriber = { workspace = true, features = ["env-filter"] } +tokio-test = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -testcontainers = "0.23.1" -httpmock = "0.7.0" +testcontainers = { workspace = true } +httpmock = { workspace = true } -dotenvy = "0.15.7" +dotenvy = { workspace = true } diff --git a/rig-qdrant/Cargo.toml b/rig-qdrant/Cargo.toml index 668a049f7..4d180a694 100644 --- a/rig-qdrant/Cargo.toml +++ b/rig-qdrant/Cargo.toml @@ -8,17 +8,17 @@ description = "Rig vector store index integration for Qdrant. https://qdrant.tec repository = "https://github.com/0xPlaygrounds/rig" [dependencies] -rig-core = { path = "../rig-core", version = "0.13.0" } -serde_json = "1.0.128" -serde = "1.0.210" -qdrant-client = "1.13.0" -uuid = { version = "1.13.1", features = ["v4"] } +rig-core = { workspace = true } +serde_json = { workspace = true } +serde = { workspace = true } +qdrant-client = { workspace = true } +uuid = { workspace = true, features = ["v4"] } [dev-dependencies] -tokio = { version = "1.40.0", features = ["rt-multi-thread"] } -anyhow = "1.0.89" -testcontainers = "0.23.1" -httpmock = "0.7.0" +tokio = { workspace = true, features = ["rt-multi-thread"] } +anyhow = { workspace = true } +testcontainers = { workspace = true } +httpmock = { workspace = true } [[example]] name = "qdrant_vector_search" diff --git a/rig-sqlite/Cargo.toml b/rig-sqlite/Cargo.toml index 5efa130bd..9e9a54fc4 100644 --- a/rig-sqlite/Cargo.toml +++ b/rig-sqlite/Cargo.toml @@ -9,18 +9,18 @@ license = "MIT" doctest = false [dependencies] -rig-core = { path = "../rig-core", version = "0.13.0", features = ["derive"] } -rusqlite = { version = "0.32", features = ["bundled"] } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -sqlite-vec = "0.1" -tokio-rusqlite = { version = "0.6.0", features = ["bundled"], default-features = false } -tracing = "0.1" -zerocopy = "0.8.10" -chrono = "0.4" +rig-core = { workspace = true, features = ["derive"] } +rusqlite = { workspace = true, features = ["bundled"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +sqlite-vec = { workspace = true } +tokio-rusqlite = { workspace = true, features = ["bundled"] } +tracing = { workspace = true } +zerocopy = { workspace = true } +chrono = { workspace = true } [dev-dependencies] -anyhow = "1.0.86" -httpmock = "0.7.0" -tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +anyhow = { workspace = true } +httpmock = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +tracing-subscriber = { workspace = true, features = ["env-filter"] } diff --git a/rig-surrealdb/Cargo.toml b/rig-surrealdb/Cargo.toml index a13e63a64..0dc37ec87 100644 --- a/rig-surrealdb/Cargo.toml +++ b/rig-surrealdb/Cargo.toml @@ -6,17 +6,17 @@ description = "SurrealDB vector store implementation for the rig framework" license = "MIT" [dependencies] -surrealdb = { version = "2.1.4", features = ["protocol-ws", "kv-mem"] } -rig-core = { path = "../rig-core", version = "0.13.0", features = ["derive"] } -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -tracing = "0.1" -uuid = { version = "1.13.1", features = ["v4"] } +surrealdb = { workspace = true, features = ["protocol-ws", "kv-mem"] } +rig-core = { workspace = true, features = ["derive"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tracing = { workspace = true } +uuid = { workspace = true, features = ["v4"] } [dev-dependencies] -anyhow = "1.0.86" -tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { version = "0.3", features = ["env-filter"] } +anyhow = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } +tracing-subscriber = { workspace = true, features = ["env-filter"] } [[example]] name = "vector_search_surreal"