semantic-commands 0.1.1

A lightweight Rust framework for defining and executing semantic commands using text embeddings
Documentation
[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"]