Skip to content

Commit

Permalink
Merge pull request #2 from L-jasmine/bump/remove_rustls_plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
juntao authored Apr 29, 2024
2 parents bfc13bf + 0d1b768 commit a6093de
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 10 deletions.
5 changes: 3 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[build]
target="wasm32-wasi"
target = "wasm32-wasi"
rustflags = ["--cfg", "wasmedge", "--cfg", "tokio_unstable"]

[target.wasm32-wasi]
runner="wasmedge"
runner = "wasmedge"
23 changes: 17 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,28 @@ readme = "README.md"
keywords = ["qdrant", "llm", "LlamaEdge", "wasmedge", "ai"]
edition = "2021"

[patch.crates-io]
socket2 = { git = "https://github.com/second-state/socket2.git", branch = "v0.5.x" }
reqwest = { git = "https://github.com/second-state/wasi_reqwest.git", branch = "0.11.x" }
hyper = { git = "https://github.com/second-state/wasi_hyper.git", branch = "v0.14.x" }
tokio = { git = "https://github.com/second-state/wasi_tokio.git", branch = "v1.36.x" }


[lib]
name = "qdrant"
path = "src/lib.rs"

[dependencies]
reqwest = { version = "0.11", default-features = false, features = [
"json",
"rustls-tls",
], git = "https://github.com/second-state/wasi_reqwest.git", branch = "0.11.x" }

tokio = { version = "1", features = [
"full",
], git = "https://github.com/second-state/wasi_tokio.git", branch = "v1.36.x" }

serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
http = "0.2"
http = "1.1"
anyhow = "1.0"
reqwest_wasi = { version = "0.11", features = ["json"] }
tokio_wasi = { version = "1.21", features = ["rt", "macros", "net", "time"] }

[features]
wasmedge-tls = ["reqwest_wasi/wasmedge-tls"]
6 changes: 6 additions & 0 deletions examples/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build]
target = "wasm32-wasi"
rustflags = ["--cfg", "wasmedge", "--cfg", "tokio_unstable"]

[target.wasm32-wasi]
runner = "wasmedge"
17 changes: 15 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@ name = "qdrant_examples"
version = "0.1.0"
edition = "2021"

[patch.crates-io]
socket2 = { git = "https://github.com/second-state/socket2.git", branch = "v0.5.x" }
reqwest = { git = "https://github.com/second-state/wasi_reqwest.git", branch = "0.11.x" }
hyper = { git = "https://github.com/second-state/wasi_hyper.git", branch = "v0.14.x" }
tokio = { git = "https://github.com/second-state/wasi_tokio.git", branch = "v1.36.x" }

[dependencies]
anyhow = "1.0"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
url = "2.3"
tokio_wasi = { version = "1", features = ["io-util", "fs", "net", "time", "rt", "macros"] }
tokio = { version = "1", features = [
"io-util",
"fs",
"net",
"time",
"rt",
"macros",
] }
# qdrant_rest_client = "0.0.1"
qdrant_rest_client = { git = "https://github.com/second-state/qdrant-rest-client/" }
qdrant_rest_client = { path = ".." }

0 comments on commit a6093de

Please sign in to comment.