-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
156 lines (125 loc) · 3.24 KB
/
Copy pathCargo.toml
File metadata and controls
156 lines (125 loc) · 3.24 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[package]
name = "osagent"
version = "0.0.1"
edition = "2021"
rust-version = "1.78"
authors = ["OSA Contributors"]
license = "MIT"
description = "Secure local AI agent with a web UI, workspace tools, and optional Discord integration"
repository = "https://github.com/osagent/osagent"
[dependencies]
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# Web framework
axum = { version = "0.7", features = ["ws", "multipart"] }
tower = "0.4"
tower-http = { version = "0.5", features = ["fs", "cors", "trace", "compression-br", "compression-gzip", "compression-deflate", "limit", "set-header"] }
# Discord bot
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "builder", "http"], optional = true }
# HTTP client
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "rustls-tls"] }
reqwest-eventsource = "0.6"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
toml = "0.8"
# Database
rusqlite = { version = "0.32", features = ["bundled"] }
# CLI
clap = { version = "4.4", features = ["derive"] }
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Authentication
bcrypt = "0.15"
jsonwebtoken = "9.2"
# Utilities
chrono = { version = "0.4", features = ["serde"] }
uuid = { version = "1.6", features = ["v4", "serde"] }
anyhow = "1.0"
thiserror = "1.0"
async-trait = "0.1"
futures = "0.3"
tokio-stream = { version = "0.1", features = ["sync"] }
tokio-tungstenite = "0.24"
shellexpand = "3.1"
tempfile = "3.9"
regex = "1.10"
globset = "0.4"
scraper = "0.19"
urlencoding = "2.1"
dashmap = "5.5"
walkdir = "2.5"
gix = { version = "0.68", default-features = false, features = ["max-performance-safe"] }
# Embed frontend
rust-embed = "8.2"
mime_guess = "2.0"
# Process management
sysinfo = "0.32"
# Base64 encoding
base64 = "0.22"
pdf-extract = "0.7"
# Async streaming
async-stream = "0.3"
lazy_static = "1.4"
# Code search (MeiliSearch)
meilisearch-sdk = "0.27"
which = "6.0"
# Bytes handling
bytes = "1.5"
# ZIP handling
zip = "0.6"
# TAR/GZ handling
tar = "0.4"
flate2 = "1.0"
# Directory paths
dirs-next = "2.0"
# Version comparison
semver = "1.0"
# Encryption for OAuth tokens
aes-gcm = "0.10"
rand = "0.8"
sha2 = "0.10"
local-ip-address = "0.6.11"
[build-dependencies]
serde_json = "1.0"
[target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies]
rfd = "0.15"
[dev-dependencies]
tokio-test = "0.4"
tempfile = "3.9"
criterion = { version = "0.5", features = ["async_tokio"] }
memory-stats = "1.0"
[[bin]]
name = "osagent"
path = "src/main.rs"
[[bin]]
name = "osagent-optimize"
path = "src/bin/optimize.rs"
[[bin]]
name = "osagent-bench"
path = "src/bin/osagent-bench.rs"
[features]
default = []
discord = ["serenity"]
production-frontend = []
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
[profile.dev-release]
inherits = "release"
opt-level = 2
lto = "thin"
codegen-units = 16
strip = true
panic = "abort"
# Release profiles disable incremental by default; this profile exists for
# iteration, where reusing previous codegen is the whole point.
incremental = true
[[bench]]
name = "performance"
harness = false