refactor: Remove smart-features and its associated dependencies, and refine broker-nats feature declaration.
This commit is contained in:
2073
Cargo.lock
generated
2073
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -66,7 +66,7 @@ This template uses Cargo features to control compilation of infrastructure adapt
|
||||
| `sqlite` | Enables SQLite repository implementations and dependencies | `template-infra`, `template-api` |
|
||||
| `postgres` | Enables PostgreSQL repository implementations and dependencies | `template-infra`, `template-api` |
|
||||
| `broker-nats`| Enables NATS messaging support | `template-infra` |
|
||||
| `smart-features` | Enables AI/Vector DB capabilities (Qdrant, FastEmbed) | `template-infra` |
|
||||
|
||||
|
||||
### Switching Databases
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ edition = "2024"
|
||||
default-run = "template-api"
|
||||
|
||||
[features]
|
||||
default = ["sqlite", "smart-features"]
|
||||
default = ["sqlite"]
|
||||
sqlite = [
|
||||
"template-infra/sqlite",
|
||||
"tower-sessions-sqlx-store/sqlite",
|
||||
@@ -17,7 +17,7 @@ postgres = [
|
||||
"sqlx/postgres",
|
||||
"k-core/postgres",
|
||||
]
|
||||
smart-features = ["template-infra/smart-features", "template-infra/broker-nats"]
|
||||
broker-nats = ["template-infra/broker-nats"]
|
||||
|
||||
[dependencies]
|
||||
k-core = { git = "https://git.gabrielkaszewski.dev/GKaszewski/k-core", features = [
|
||||
|
||||
@@ -4,14 +4,13 @@ version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[features]
|
||||
default = ["sqlite", "smart-features", "broker-nats"]
|
||||
default = ["sqlite", "broker-nats"]
|
||||
sqlite = ["sqlx/sqlite", "tower-sessions-sqlx-store/sqlite"]
|
||||
postgres = [
|
||||
"sqlx/postgres",
|
||||
"tower-sessions-sqlx-store/postgres",
|
||||
"k-core/postgres",
|
||||
]
|
||||
smart-features = ["dep:fastembed", "dep:qdrant-client"]
|
||||
broker-nats = ["dep:async-nats", "dep:futures-util"]
|
||||
|
||||
[dependencies]
|
||||
@@ -28,8 +27,6 @@ tracing = "0.1"
|
||||
uuid = { version = "1.19.0", features = ["v4", "serde"] }
|
||||
tower-sessions = "0.14.0"
|
||||
tower-sessions-sqlx-store = { version = "0.15.0", default-features = false }
|
||||
fastembed = { version = "5.4", optional = true }
|
||||
qdrant-client = { version = "1.16", optional = true }
|
||||
serde_json = "1.0"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
async-nats = { version = "0.45", optional = true }
|
||||
|
||||
Reference in New Issue
Block a user