-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
42 lines (36 loc) · 1.27 KB
/
Cargo.toml
File metadata and controls
42 lines (36 loc) · 1.27 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
[package]
name = "semantic-commands"
version = "0.1.1"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Kostiantyn Kostiuk (SET001) <settydark@gmail.com>"]
description = "A lightweight Rust framework for defining and executing semantic commands using text embeddings"
repository = "https://github.com/SET001/semantic-commands"
categories = ["command-line-utilities", "asynchronous", "text-processing"]
keywords = ["nlp", "semantic", "commands", "embeddings", "bot"]
readme = "README.md"
[dependencies]
anyhow = "1.0.100"
reqwest = { version = "0.12", features = ["json"], optional = true }
serde = "1.0.228"
tokio = {version="1.48.0", features=["full"]}
sqlx = {version = "0.8", features = ["runtime-tokio","tls-native-tls","postgres"], optional=true}
futures = "0.3.31"
log = "0.4.28"
async-trait = "0.1.89"
moka = { version = "0.12", features = ["future"], optional = true }
[dev-dependencies]
reqwest = { version = "0.12", features = ["json"] }
chrono = "0.4.42"
clap = {version="4.5.50", features = ["derive"]}
env_logger = "0.11.8"
dotenv = "0.15.0"
axum = "0.8.7"
[features]
default = ["openai", "in-memory-cache"]
full = ["openai", "in-memory-cache", "postgres"]
# Embedder backends
openai = ["dep:reqwest"]
# Cache backends
in-memory-cache = ["dep:moka"]
postgres = ["dep:sqlx"]