mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
Move native-only path and Tokio dependencies behind cfg gates so shared crates can compile for wasm32. Replace the absolute-path implementation with a lexical normalization fallback on wasm, use a std mutex for the cache helper on wasm, and degrade git symlink creation to an unsupported-platform error instead of a compile-time failure.
19 lines
439 B
TOML
19 lines
439 B
TOML
[package]
|
|
name = "codex-utils-cache"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
lru = { workspace = true }
|
|
sha1 = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["macros", "rt", "rt-multi-thread"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
tokio = { workspace = true, features = ["sync", "rt", "rt-multi-thread"] }
|