Add cargo workspace to allow rust-analyzer to work correctly (#197)

Signed-off-by: José Ulises Niño Rivera <junr03@users.noreply.github.com>
This commit is contained in:
José Ulises Niño Rivera 2024-10-18 12:44:52 -07:00 committed by GitHub
parent 6fb63510b3
commit aa30353c85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 2243 additions and 2 deletions

1
.gitignore vendored
View file

@ -30,3 +30,4 @@ model_server/dist
arch_logs/
dist/
crates/*/target/
crates/target/

2237
crates/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

3
crates/Cargo.toml Normal file
View file

@ -0,0 +1,3 @@
[workspace]
resolver = "2"
members = ["llm_gateway", "prompt_gateway", "common"]

View file

@ -7,7 +7,7 @@ use serial_test::serial;
use std::path::Path;
fn wasm_module() -> String {
let wasm_file = Path::new("target/wasm32-wasi/release/llm_gateway.wasm");
let wasm_file = Path::new("../target/wasm32-wasi/release/llm_gateway.wasm");
assert!(
wasm_file.exists(),
"Run `cargo build --release --target=wasm32-wasi` first"

View file

@ -17,7 +17,7 @@ use std::collections::HashMap;
use std::path::Path;
fn wasm_module() -> String {
let wasm_file = Path::new("target/wasm32-wasi/release/prompt_gateway.wasm");
let wasm_file = Path::new("../target/wasm32-wasi/release/prompt_gateway.wasm");
assert!(
wasm_file.exists(),
"Run `cargo build --release --target=wasm32-wasi` first"