Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

4.1 KB
Raw Blame
[package]
edition = "2024"
name = "webhook"
publish = false
version = "0.1.0"

[features]
consumer = [
  "dep:kafka_util",
  "dep:rdkafka",
  "dep:tokio",
  "dep:tokio-retry",
  "ingestion",
  "macro_event_broker/outbound",
]
default = ["consumer", "inbound", "outbound", "ports", "stream"]
inbound = [
  "dep:axum",
  "dep:axum-extra",
  "dep:channels",
  "dep:documents",
  "dep:macro_authorization",
  "dep:model-error-response",
  "dep:model_user",
  "dep:rate_limit",
  "dep:serde_json",
  "dep:utoipa",
  "agent_session/schema",
  "call/inbound",
  "channels/schema",
  "documents/schema",
  "messages/schema",
  "ports",
  "rate_limit/axum",
]
ingestion = [
  "dep:agent_session",
  "dep:agent_trigger",
  "dep:channels",
  "dep:call",
  "dep:documents",
  "dep:entity_access",
  "dep:futures",
  "dep:uuid",
  "ports",
]
outbound = [
  "dep:webhook_signature",
  "dep:macro_uuid",
  "dep:reqwest",
  "dep:sqlx",
  "dep:sqs_client",
  "dep:tokio",
  "dep:url",
  "ports",
]
ports = ["dep:serde_json", "dep:url"]
stream = [
  "dep:futures",
  "dep:kafka_util",
  "dep:tokio",
  "dep:uuid",
  "ingestion",
  "inbound",
  "macro_event_broker/outbound",
]
worker = ["dep:tokio", "ports"]

[dependencies]
messages = { path = "../messages", features = ["broker"] }
anyhow = { workspace = true }
axum = { workspace = true, optional = true }
axum-extra = { workspace = true, optional = true }
agent_session = { path = "../agent_session", default-features = false, optional = true }
agent_trigger = { path = "../agent_trigger", optional = true }
call = { path = "../call", default-features = false, optional = true }
channels = { path = "../channels", default-features = false, optional = true }
chrono = { workspace = true }
documents = { path = "../documents", default-features = false, optional = true }
model_owner = { path = "../model_owner" }
entity_access = { path = "../entity_access", default-features = false, features = [
  "ports",
], optional = true }
futures = { workspace = true, optional = true }
kafka_util = { path = "../kafka_util", optional = true }
macro_authorization = { path = "../macro_authorization", optional = true, default-features = false, features = [
  "axum",
] }
macro_event_broker = { path = "../macro_event_broker", default-features = false }
macro_event_topics = { path = "../macro_event_topics" }
macro_user_id = { path = "../macro_user_id" }
macro_uuid = { path = "../macro_uuid", optional = true }
model-error-response = { path = "../model-error-response", optional = true }
model_user = { path = "../model_user", optional = true }
rate_limit = { path = "../rate_limit", optional = true, default-features = false }
rdkafka = { workspace = true, optional = true }
reqwest = { workspace = true, optional = true }
rootcause = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true, optional = true }
webhook_signature = { path = "../webhook_signature", optional = true }
sqlx = { workspace = true, optional = true }
sqs_client = { path = "../sqs_client", default-features = false, optional = true }
strum = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros", "sync", "time"], optional = true }
tokio-retry = { workspace = true, optional = true }
tracing = { workspace = true }
url = { workspace = true, optional = true }
utoipa = { workspace = true, optional = true }
uuid = { workspace = true, optional = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
agent_fold = { path = "../folds/agent_fold" }
agent_runtime_protocol = { path = "../agent_runtime_protocol", default-features = false }
agent_session = { path = "../agent_session", default-features = false, features = [
  "test-utils",
] }
bot_id = { path = "../bot_id", features = ["test-utils"] }
channel_sender = { path = "../channel_sender" }
trigger_context = { path = "../trigger_context" }
macro_db_migrator = { path = "../macro_db_migrator" }
messages = { path = "../messages" }
rate_limit = { path = "../rate_limit", default-features = false, features = [
  "axum",
  "testing",
] }
tokio = { workspace = true, features = ["test-util"] }
tower = { workspace = true }