Files
codex/codex-rs/ext/image-generation/Cargo.toml
T
jif 35ca204afa Remove the image generation extension's dependency on codex-core (#63727)
## Why

The extension depended on the full core configuration to resolve a small
set of per-thread settings. Accepting those settings from the host lets
the extension work with other host configuration types.

## What changed

Make the extension generic over any host configuration that can provide
`ImageGenerationSettings`. Resolve the settings and artifact save root
at thread startup and refresh them when the thread configuration changes.

Share the `image_gen` namespace through `codex-config` and the
`x-codex-turn-metadata` header through `codex-api`.

GitOrigin-RevId: 3f10fd0a45c910e87bb6beea7f7c2e6c3f7eb707
2026-11-24 19:54:23 +00:00

43 lines
1.2 KiB
TOML

[package]
edition.workspace = true
license.workspace = true
name = "codex-image-generation-extension"
version.workspace = true
[lib]
name = "codex_image_generation_extension"
path = "src/lib.rs"
doctest = false
[lints]
workspace = true
[dependencies]
base64 = { workspace = true }
codex-api = { workspace = true }
codex-attachment-store = { workspace = true }
codex-config = { workspace = true }
codex-exec-server = { workspace = true }
codex-extension-api = { workspace = true }
codex-extension-items = { workspace = true }
codex-http-client = { workspace = true }
codex-login = { workspace = true }
codex-model-provider = { workspace = true }
codex-protocol = { workspace = true }
codex-tools = { workspace = true }
codex-utils-absolute-path = { workspace = true }
codex-utils-image = { workspace = true }
codex-utils-path-uri = { workspace = true }
http = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sha2 = { workspace = true }
tracing = { workspace = true }
[dev-dependencies]
image = { workspace = true, features = ["png"] }
pretty_assertions = { workspace = true }
tempfile = { workspace = true }
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }