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.

5.2 KB
Raw Blame
[package]
edition = "2024"
name = "email"
publish = false
version = "0.1.0"

[features]
# Calendar invitation extraction and resolution against the viewer's calendar.
calendar_invitations = ["dep:calendar_events", "dep:chrono-tz", "dep:ical", "dep:url"]
mailbox = ["ports", "dep:email_api_client", "dep:models_email", "dep:calendar_events", "dep:subtle"]
all = [
  "ai_tools",
  "gmail_token",
  "http_client",
  "inbound",
  "outbound",
  "ports",
  "s3",
  "sqs",
]
attachment = [
  "dep:attachment",
  "dep:non_empty",
  "ports",
]
ai_schema = ["dep:schemars"]
ai_tools = [
  "dep:ai_toolset",
  "dep:async-trait",
  "dep:email_validator",
  "dep:schemars",
  "dep:specta",
  "ports",
]
axum = [
  "dep:axum",
  "dep:axum-extra",
  "dep:macro_authorization",
  "dep:model-error-response",
  "dep:utoipa",
  "models_pagination/axum",
]
gmail_senders = ["gmail_token", "dep:gmail_client", "dep:models_email"]
gmail_token = ["dep:authentication_service_client", "dep:google_token", "dep:redis", "ports"]
http_client = ["dep:reqwest", "ports"]
inbound = ["ports"]
outbound = ["dep:calendar_events", "dep:sqlx", "ports"]
sqs = ["dep:models_email", "dep:sqs_client", "ports"]
ports = ["crm/ports", "dep:chrono-tz", "dep:tokio", "frecency/ports"]
# The S3 adapter for staged draft attachments.
s3 = ["dep:aws-sdk-s3", "ports"]

[dependencies]
agent_correlation = { path = "../agent_correlation" }
subtle = { workspace = true, optional = true }
calendar_events = { path = "../calendar_events", optional = true }
ical = { version = "0.11", default-features = false, features = ["ical"], optional = true }
chrono-tz = { workspace = true, optional = true }
sha2 = { workspace = true }
url = { workspace = true, optional = true }
activity = { path = "../activity", default-features = false }
ai_toolset = { path = "../ai_toolset", optional = true }
attachment = { path = "../attachment", optional = true }
anyhow = { workspace = true }
async-trait = { workspace = true, optional = true }
aws-sdk-s3 = { workspace = true, optional = true }
base64 = { workspace = true }
lexical_client = { path = "../lexical_client" }
email_validator = { path = "../email_validator", optional = true }
entity_access = { path = "../entity_access" }
entity_access_management = { path = "../entity_access_management", default-features = false, features = [
  "ports",
] }
futures = { workspace = true }
axum = { workspace = true, optional = true }
axum-extra = { workspace = true, optional = true }
chrono = { workspace = true, features = ["serde"] }
crm = { path = "../crm", default-features = false }
doppleganger = { workspace = true, features = ["chrono", "uuid"] }
either = { workspace = true }
email_utils = { path = "../email_utils" }
email_db_client = { path = "../email_db_client" }
email_api_client = { path = "../email_api_client", optional = true, features = ["ports"] }
filter_ast = { path = "../filter_ast" }
frecency = { path = "../frecency" }
gmail_client = { path = "../gmail_client", optional = true }
google_token = { path = "../google_token", optional = true }
item_filters = { path = "../item_filters" }
lol_html = { workspace = true }
scraper = { workspace = true }
macro_authorization = { path = "../macro_authorization", default-features = false, features = ["axum"], optional = true }
macro_event_broker = { path = "../macro_event_broker", default-features = false }
macro_event_topics = { path = "../macro_event_topics" }
entity_mutation = { path = "../entity_mutation" }
macro_user_id = { path = "../macro_user_id" }
macro_uuid = { path = "../macro_uuid" }
model-entity = { path = "../model-entity" }
non_empty = { path = "../non_empty", optional = true }
model-error-response = { path = "../model-error-response", optional = true }
models_pagination = { path = "../models_pagination" }
models_email = { path = "../models_email", optional = true }
sqs_client = { path = "../sqs_client", default-features = false, features = ["email"], optional = true }
rand = { workspace = true }
recursion = { workspace = true }
reqwest = { workspace = true, optional = true }
rootcause = { workspace = true }
schemars = { workspace = true, optional = true, features = ["uuid1"] }
specta = { workspace = true, optional = true, features = ["uuid"] }
serde = { workspace = true }
serde_json = { workspace = true }
serde_with = { workspace = true }
authentication_service_client = { path = "../authentication_service_client", optional = true }
redis = { workspace = true, features = ["tokio-rustls-comp"], optional = true }
sqlx = { workspace = true, optional = true }
strum = { workspace = true }
thiserror = { workspace = true }
tokio = { workspace = true, features = ["macros", "time"], optional = true }
tracing = { workspace = true }
utoipa = { workspace = true, optional = true }
uuid = { workspace = true }
workspace-hack = { version = "0.1", path = "../workspace-hack" }

[dev-dependencies]
tokio = { workspace = true, features = ["test-util"] }
models_email = { path = "../models_email" }
email_db_client = { path = "../email_db_client" }
crm = { path = "../crm", features = ["outbound"] }
frecency = { path = "../frecency", features = ["outbound", "postgres"] }
macro_db_migrator = { path = "../macro_db_migrator" }
serde_json = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }