fabro/crates/arc-api/Cargo.toml
Bryan Helmkamp 99ad7ffe29 Extract server code into arc-api crate
Move HTTP server (Axum routes, JWT auth, serve CLI command, server
config) from arc-workflows into a dedicated arc-api crate. This
improves separation — arc-workflows is a pipeline engine library,
not a web server.

- Create crates/arc-api with server.rs, jwt_auth.rs, serve.rs,
  server_config.rs and their integration tests
- Remove server feature flag and optional deps from arc-workflows
- Update arc-cli to depend on arc-api for ServeArgs and serve_command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 11:51:21 -05:00

33 lines
782 B
TOML

[package]
name = "arc-api"
edition.workspace = true
version.workspace = true
license.workspace = true
description = "HTTP API server for Arc pipelines"
[lib]
doctest = false
[dependencies]
arc-workflows = { path = "../arc-workflows" }
arc-agent = { path = "../arc-agent" }
arc-llm = { path = "../arc-llm" }
arc-util = { path = "../arc-util" }
axum = "0.8"
tower = "0.5"
tokio-stream = { workspace = true, features = ["sync"] }
jsonwebtoken.workspace = true
tokio.workspace = true
serde.workspace = true
serde_json.workspace = true
anyhow.workspace = true
clap.workspace = true
toml.workspace = true
ulid.workspace = true
uuid.workspace = true
[dev-dependencies]
tokio = { workspace = true, features = ["test-util", "macros"] }
tower = "0.5"
http-body-util = "0.1"
tempfile = "3"