-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
86 lines (70 loc) · 3.01 KB
/
Copy pathCargo.toml
File metadata and controls
86 lines (70 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[workspace]
members = [".", "rain-tui", "rain-macros"]
resolver = "2"
[package]
name = "rain"
version = "0.1.0"
edition = "2021"
description = "A lightweight, on-device agentic AI framework for edge environments"
license = "MIT"
repository = "https://github.com/Adriftdev/rain"
keywords = ["ai", "agent", "llm", "edge", "orchestration"]
categories = ["asynchronous", "api-bindings"]
readme = "README.md"
[features]
default = ["ollama", "sandbox"]
ollama = ["dep:ollama_client_rs"]
gemini = ["dep:gemini_client_rs"]
tracing = ["ollama_client_rs?/tracing", "gemini_client_rs?/tracing"]
sandbox = ["dep:wasmtime", "dep:wasmtime-wasi", "dep:cap-std", "dep:toml"]
[dependencies]
# Internal crates
rain-macros = { path = "rain-macros" }
rain-engine = { version = "0.1.0", features = ["store-sqlite"] }
rain-engine-openai = "0.1.0"
# LLM provider clients
ollama_client_rs = { version = "0.4", default-features = false, optional = true }
gemini_client_rs = { version = "0.10", default-features = false, optional = true }
# Async runtime
tokio = { version = "1", default-features = false, features = ["macros", "rt-multi-thread", "time", "sync", "fs", "process"] }
async-trait = { version = "0.1", default-features = false }
futures-util = { version = "0.3", default-features = false }
# Serialization
serde = { version = "1", default-features = false, features = ["derive"] }
serde_json = { version = "1", default-features = false }
# HTTP for ACP network layer
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# Error handling
thiserror = { version = "2", default-features = false }
anyhow = { version = "1", default-features = false }
# Semantic routing / embeddings
ndarray = { version = "0.16", default-features = false }
# Tracing (optional)
tracing = { version = "0.1", default-features = false }
# WASM Component Model sandbox (optional feature)
wasmtime = { version = "42", default-features = false, features = ["component-model", "cranelift", "std", "runtime"], optional = true }
wasmtime-wasi = { version = "42", default-features = false, features = ["p2"], optional = true }
cap-std = { version = "3", default-features = false, optional = true }
toml = { version = "0.8", default-features = false, features = ["parse"], optional = true }
# Utilities
uuid = { version = "1", default-features = false, features = ["v4", "serde"] }
chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] }
dashmap = { version = "6", default-features = false }
lazy_static = "1.5"
parking_lot = { version = "0.12", default-features = false }
paste = "1.0"
[patch.crates-io]
gemini_client_rs = { path = "../gemini_client/crates/gemini-client" }
ollama_client_rs = { path = "../ollama_client" }
[dev-dependencies]
tokio = { version = "1", features = ["full"] }
tracing-subscriber = { version = "0.3", default-features = false, features = ["fmt"] }
dotenvy = "0.15"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[[example]]
name = "test_serialization"
required-features = ["gemini"]