Skip to content
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
142 changes: 135 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 11 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,27 @@ version = "1.3.1"
edition = "2024"

[dependencies]
rmcp = { version = "0.1.5", features = ["tower", "transport-io", "transport-sse-server", "macros", "server"] } # Add macros, server, schemars
rmcp = { version = "0.1.5", features = ["tower", "transport-io", "transport-sse-server", "macros", "server"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
dotenvy = "0.15"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2.0.12"
walkdir = "2.5.0"
scraper = "0.23.1"
ndarray = { version = "0.16.1", features = ["serde"] } # Enable serde feature
async-openai = "0.28.0"
# async-trait = "0.1.88" # Removed, likely no longer needed
ndarray = { version = "0.16.1", features = ["serde"] }
async-openai = "0.28.0" # Keep for chat completion (optional)
ollama-rs = "0.2.0" # Add Ollama client
url = "2.4" # Add url parsing for Ollama client construction
futures = "0.3"
bincode = { version = "2.0.1", features = ["serde"] } # Enable serde integration
bincode = { version = "2.0.1", features = ["serde"] }
tiktoken-rs = "0.6.0"
# Configure cargo crate to vendor openssl to avoid system mismatches
cargo = { version = "0.87.1", default-features = false, features = ["vendored-openssl"] }
tempfile = "3.19.1"
anyhow = "1.0.97"
schemars = "0.8.22"
clap = { version = "4.5.34", features = ["cargo", "derive", "env"] }


# --- Platform Specific Dependencies ---

[target.'cfg(not(target_os = "windows"))'.dependencies]
Expand All @@ -34,12 +33,10 @@ xdg = { version = "2.5.2", features = ["serde"] }
[target.'cfg(target_os = "windows")'.dependencies]
dirs = "6.0.0"


# Optimize release builds for size
[profile.release]
opt-level = "z" # Optimize for size
lto = true # Enable Link Time Optimization
codegen-units = 1 # Maximize size reduction opportunities
panic = "abort" # Abort on panic to remove unwinding code
strip = true # Strip symbols from binary

opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
Loading