a789495a98
FreeBSD Smoke / FreeBSD Smoke (x86_64) (push) Has been cancelled
CI / Quality Guardrails (push) Has been cancelled
CI / Build & Test (macos-latest) (push) Has been cancelled
CI / Build & Test (ubuntu-latest) (push) Has been cancelled
CI / Build & Test (windows-latest) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / PowerShell Syntax (push) Has been cancelled
CI / Windows Cross-Target Check (Linux) (push) Has been cancelled
35 lines
1.5 KiB
TOML
35 lines
1.5 KiB
TOML
[package]
|
|
name = "jcode-provider-anthropic-runtime"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "Direct Anthropic Messages API provider runtime (OAuth + API key, SSE streaming) for jcode, kept downstream of jcode-base so provider edits do not rebuild the app spine"
|
|
|
|
[lib]
|
|
name = "jcode_provider_anthropic_runtime"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
async-trait = "0.1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
futures = "0.3"
|
|
# default-features = false: the top-level binary decides heavy optional base
|
|
# features (embeddings/bedrock). Runtime crates must not re-enable them via
|
|
# feature unification, or --no-default-features release targets (e.g. Windows
|
|
# ARM64, which cannot build tract-linalg asm) break.
|
|
jcode-base = { path = "../jcode-base", default-features = false }
|
|
jcode-message-types = { path = "../jcode-message-types" }
|
|
jcode-provider-anthropic = { path = "../jcode-provider-anthropic" }
|
|
jcode-provider-core = { path = "../jcode-provider-core" }
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "stream", "charset", "http2", "system-proxy", "rustls-tls", "rustls-tls-native-roots"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
tokio = { version = "1", features = ["sync", "time", "rt"] }
|
|
tokio-stream = "0.1"
|
|
uuid = { version = "1", features = ["v4", "v5"] }
|
|
|
|
[dev-dependencies]
|
|
# The migrated anthropic tests use jcode-base's test-env sandbox.
|
|
jcode-base = { path = "../jcode-base", features = ["test-support"] }
|
|
tempfile = "3"
|