Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize into Cargo workspace #60

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 4 additions & 44 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
[package]
name = "pinecone-sdk"
version = "0.1.2"
edition = "2021"
description = "Pinecone Rust SDK"
repository = "https://github.com/pinecone-io/pinecone-rust-client"
homepage = "https://www.pinecone.io/"
rust-version = "1.78.0"
readme = "./README.md"
license = "Apache-2.0"
keywords = ["pinecone", "vector", "database", "cloud", "vectordb"]
categories = ["api-bindings", "database"]
exclude = ["tests/*"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tokio = { version = "1", features = ["full"] }
regex = "1.10"
serde_json = "1.0"
snafu = "0.8"
rand = "0.8"
tonic = { version = "0.11", features = ["tls", "transport", "tls-roots"] }
prost = "0.12"
prost-types = "0.12"
# reqwest = "0.12"
once_cell = "1.19"

# openapi
serde = { version = "^1.0", features = ["derive"] }
# serde_json = "^1.0"
url = "^2.5"
uuid = { version = "^1.8", features = ["serde", "v4"] }
reqwest = { version = "^0.12", features = ["json", "multipart"] }
thiserror = "1.0.63"
anyhow = "1.0.86"

[dev-dependencies]
temp-env = "0.3"
httpmock = "0.7.0-rc.1"
serial_test = "3.1"

[build-dependencies]
tonic-build = "0.11"
[workspace]
members = ["pinecone-sdk"]
exclude = ["codegen"]
resolver = "2"
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api_version := "2024-07"

# Generate version file
generate-version:
echo "/// Pinecone API version\npub const API_VERSION: &str = \"{{api_version}}\";" > src/version.rs
echo "/// Pinecone API version\npub const API_VERSION: &str = \"{{api_version}}\";" > pinecone-sdk/src/version.rs

# Build the OpenAPI and Protobuf definitions in `codegen/apis`
build-apis:
Expand Down
44 changes: 44 additions & 0 deletions pinecone-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[package]
name = "pinecone-sdk"
version = "0.1.2"
edition = "2021"
description = "Pinecone Rust SDK"
repository = "https://github.com/pinecone-io/pinecone-rust-client"
homepage = "https://www.pinecone.io/"
rust-version = "1.78.0"
readme = "./README.md"
license = "Apache-2.0"
keywords = ["pinecone", "vector", "database", "cloud", "vectordb"]
categories = ["api-bindings", "database"]
exclude = ["tests/*"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tokio = { version = "1", features = ["full"] }
regex = "1.10"
serde_json = "1.0"
snafu = "0.8"
rand = "0.8"
tonic = { version = "0.11", features = ["tls", "transport", "tls-roots"] }
prost = "0.12"
prost-types = "0.12"
# reqwest = "0.12"
once_cell = "1.19"

# openapi
serde = { version = "^1.0", features = ["derive"] }
# serde_json = "^1.0"
url = "^2.5"
uuid = { version = "^1.8", features = ["serde", "v4"] }
reqwest = { version = "^0.12", features = ["json", "multipart"] }
thiserror = "1.0.63"
anyhow = "1.0.86"

[dev-dependencies]
temp-env = "0.3"
httpmock = "0.7.0-rc.1"
serial_test = "3.1"

[build-dependencies]
tonic-build = "0.11"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.