Add HTTP REST API gateway for Synor Database L2: - Gateway server with Axum HTTP framework - API key authentication with permissions and rate limiting - Full REST endpoints for all database models: - Key-Value: GET/PUT/DELETE /kv/:key, POST /kv/batch - Documents: CRUD operations, MongoDB-style queries - Vectors: embedding insert, similarity search - Time-series: metrics recording and queries - Usage metering for billing integration - CORS and request timeout configuration All 51 tests passing. Phase 10 now complete (100%).
43 lines
929 B
TOML
43 lines
929 B
TOML
[package]
|
|
name = "synor-database"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Multi-model database layer for Synor blockchain"
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
# Internal crates
|
|
synor-types = { path = "../synor-types" }
|
|
synor-crypto = { path = "../synor-crypto" }
|
|
synor-storage = { path = "../synor-storage" }
|
|
|
|
# Serialization
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
borsh.workspace = true
|
|
|
|
# Utilities
|
|
thiserror.workspace = true
|
|
parking_lot.workspace = true
|
|
tracing.workspace = true
|
|
hex.workspace = true
|
|
|
|
# Hashing
|
|
blake3.workspace = true
|
|
|
|
# Async
|
|
tokio = { workspace = true, features = ["sync", "rt-multi-thread", "net"] }
|
|
|
|
# Data structures
|
|
lru = "0.12"
|
|
indexmap = "2.2"
|
|
|
|
# HTTP Gateway
|
|
axum.workspace = true
|
|
tower-http = { version = "0.5", features = ["cors", "trace"] }
|
|
|
|
# Vector operations (for AI/RAG)
|
|
# Using pure Rust for portability
|
|
|
|
[dev-dependencies]
|
|
tempfile.workspace = true
|