# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Autogenerated by pycargoebuild 0.15.0 EAPI=8 CRATES=" Inflector@0.11.4 addr2line@0.24.2 adler2@2.0.1 aes@0.8.4 ahash@0.8.12 aho-corasick@1.1.3 allocative@0.3.4 allocative_derive@0.3.3 allocator-api2@0.2.21 android_system_properties@0.1.5 annotate-snippets@0.9.2 ansi-to-tui@7.0.0 anstream@0.6.19 anstyle-parse@0.2.7 anstyle-query@1.1.3 anstyle-wincon@3.0.9 anstyle@1.0.11 anyhow@1.0.99 arboard@3.6.0 arrayvec@0.7.6 ascii-canvas@3.0.0 ascii@1.1.0 askama@0.12.1 askama_derive@0.12.5 askama_escape@0.10.3 askama_parser@0.2.1 assert-json-diff@2.0.2 assert_cmd@2.0.17 assert_matches@1.5.0 async-broadcast@0.7.2 async-channel@2.5.0 async-executor@1.13.3 async-fs@2.2.0 async-io@2.6.0 async-lock@3.4.1 async-process@2.5.0 async-recursion@1.1.1 async-signal@0.2.13 async-stream-impl@0.3.6 async-stream@0.3.6 async-task@4.7.1 async-trait@0.1.89 atomic-waker@1.1.2 autocfg@1.5.0 axum-core@0.5.2 axum@0.8.4 backtrace@0.3.75 base64@0.22.1 basic-toml@0.1.10 beef@0.5.2 bit-set@0.5.3 bit-vec@0.6.3 bitflags@1.3.2 bitflags@2.9.1 block-buffer@0.10.4 block-padding@0.3.3 blocking@1.6.2 bstr@1.12.0 bumpalo@3.19.0 bytemuck@1.23.1 byteorder-lite@0.1.0 byteorder@1.5.0 bytes@1.10.1 cassowary@0.3.0 castaway@0.2.4 cbc@0.1.2 cc@1.2.30 cesu8@1.1.0 cfg-if@1.0.1 cfg_aliases@0.1.1 cfg_aliases@0.2.1 chrono@0.4.42 chunked_transfer@1.5.0 cipher@0.4.4 clap@4.5.47 clap_builder@4.5.47 clap_complete@4.5.57 clap_derive@4.5.47 clap_lex@0.7.5 clipboard-win@5.4.1 cmp_any@0.8.1 color-eyre@0.6.5 color-spantrace@0.3.0 colorchoice@1.0.4 combine@4.6.7 compact_str@0.8.1 concurrent-queue@2.5.0 console@0.15.11 convert_case@0.6.0 core-foundation-sys@0.8.7 core-foundation@0.10.1 core-foundation@0.9.4 cpufeatures@0.2.17 crc32fast@1.5.0 crossbeam-channel@0.5.15 crossbeam-deque@0.8.6 crossbeam-epoch@0.9.18 crossbeam-utils@0.8.21 crossterm@0.28.1 crossterm_winapi@0.9.1 crunchy@0.2.4 crypto-common@0.1.6 ctor-proc-macro@0.0.6 ctor@0.1.26 ctor@0.5.0 darling@0.20.11 darling@0.21.3 darling_core@0.20.11 darling_core@0.21.3 darling_macro@0.20.11 darling_macro@0.21.3 dbus-secret-service@4.1.0 dbus@0.9.9 deadpool-runtime@0.1.4 deadpool@0.12.3 debugid@0.8.0 debugserver-types@0.5.0 deranged@0.5.4 derivative@2.2.0 derive_more-impl@1.0.0 derive_more-impl@2.0.1 derive_more@1.0.0 derive_more@2.0.1 diff@0.1.13 difflib@0.4.0 diffy@0.4.2 digest@0.10.7 dirs-next@2.0.0 dirs-sys-next@0.1.2 dirs-sys@0.5.0 dirs@6.0.0 dispatch2@0.3.0 display_container@0.9.0 displaydoc@0.2.5 doc-comment@0.3.3 dotenvy@0.15.7 downcast-rs@1.2.1 dtor-proc-macro@0.0.6 dtor@0.1.0 dunce@1.0.5 dupe@0.9.1 dupe_derive@0.9.1 dyn-clone@1.0.19 either@1.15.0 ena@0.14.3 encode_unicode@1.0.0 encoding_rs@0.8.35 endi@1.1.0 endian-type@0.1.2 enumflags2@0.7.12 enumflags2_derive@0.7.12 env-flags@0.1.1 env_filter@0.1.3 env_logger@0.11.8 equivalent@1.0.2 erased-serde@0.3.31 errno@0.3.13 error-code@3.3.2 escargot@0.5.15 event-listener-strategy@0.5.4 event-listener@5.4.0 eventsource-stream@0.2.3 eyre@0.6.12 fancy-regex@0.13.0 fastrand@2.3.0 fax@0.2.6 fax_derive@0.2.0 fd-lock@4.0.4 fdeflate@0.3.7 filedescriptor@0.8.3 findshlibs@0.10.2 fixed_decimal@0.7.0 fixedbitset@0.4.2 flate2@1.1.2 float-cmp@0.10.0 fnv@1.0.7 foldhash@0.1.5 foreign-types-shared@0.1.1 foreign-types@0.3.2 form_urlencoded@1.2.1 fsevent-sys@4.1.0 futures-channel@0.3.31 futures-core@0.3.31 futures-executor@0.3.31 futures-io@0.3.31 futures-lite@2.6.1 futures-macro@0.3.31 futures-sink@0.3.31 futures-task@0.3.31 futures-util@0.3.31 futures@0.3.31 fxhash@0.2.1 generic-array@0.14.7 gethostname@0.4.3 getopts@0.2.23 getrandom@0.2.16 getrandom@0.3.3 gimli@0.31.1 globset@0.4.16 h2@0.4.11 half@2.6.0 hashbrown@0.12.3 hashbrown@0.14.5 hashbrown@0.15.4 heck@0.5.0 hermit-abi@0.5.2 hex@0.4.3 hkdf@0.12.4 hmac@0.12.1 home@0.5.11 hostname@0.4.1 http-body-util@0.1.3 http-body@1.0.1 http@1.3.1 httparse@1.10.1 httpdate@1.0.3 humansize@2.1.3 hyper-rustls@0.27.7 hyper-timeout@0.5.2 hyper-tls@0.6.0 hyper-util@0.1.16 hyper@1.7.0 iana-time-zone-haiku@0.1.2 iana-time-zone@0.1.63 icu_collections@2.0.0 icu_decimal@2.0.0 icu_decimal_data@2.0.0 icu_locale@2.0.0 icu_locale_core@2.0.0 icu_locale_data@2.0.0 icu_normalizer@2.0.0 icu_normalizer_data@2.0.0 icu_properties@2.0.1 icu_properties_data@2.0.1 icu_provider@2.0.0 ident_case@1.0.1 idna@1.0.3 idna_adapter@1.2.1 ignore@0.4.23 image@0.25.8 indenter@0.3.3 indexmap@1.9.3 indexmap@2.10.0 indoc@2.0.6 inotify-sys@0.1.5 inotify@0.11.0 inout@0.1.4 insta@1.43.2 instability@0.3.9 inventory@0.3.20 io-uring@0.7.9 ipnet@2.11.0 iri-string@0.7.8 is-terminal@0.4.16 is_ci@1.2.0 is_terminal_polyfill@1.70.1 itertools@0.10.5 itertools@0.13.0 itertools@0.14.0 itoa@1.0.15 jiff-static@0.2.15 jiff@0.2.15 jni-sys@0.3.0 jni@0.21.1 js-sys@0.3.77 keyring@3.6.3 kqueue-sys@1.0.4 kqueue@1.1.1 lalrpop-util@0.19.12 lalrpop@0.19.12 landlock@0.4.2 lazy_static@1.5.0 libc@0.2.175 libdbus-sys@0.2.6 libm@0.2.15 libredox@0.1.6 linux-keyutils@0.2.4 linux-raw-sys@0.4.15 linux-raw-sys@0.9.4 litemap@0.8.0 lock_api@0.4.13 log@0.4.28 logos-derive@0.12.1 logos@0.12.1 lru-slab@0.1.2 lru@0.12.5 lsp-types@0.94.1 maplit@1.0.2 matchers@0.2.0 matchit@0.8.4 memchr@2.7.5 memoffset@0.6.5 memoffset@0.9.1 mime@0.3.17 mime_guess@2.0.5 minimal-lexical@0.2.1 miniz_oxide@0.8.9 mio@1.0.4 moxcms@0.7.5 multimap@0.10.1 native-tls@0.2.14 ndk-context@0.1.1 new_debug_unreachable@1.0.6 nibble_vec@0.1.0 nix@0.28.0 nix@0.29.0 nix@0.30.1 nom@7.1.3 normalize-line-endings@0.3.0 notify-types@2.0.0 notify@8.2.0 nu-ansi-term@0.50.1 nucleo-matcher@0.3.1 num-bigint@0.4.6 num-complex@0.4.6 num-conv@0.1.0 num-integer@0.1.46 num-iter@0.1.45 num-rational@0.4.2 num-traits@0.2.19 num@0.4.3 num_cpus@1.17.0 num_threads@0.1.7 oauth2@5.0.0 objc2-app-kit@0.3.1 objc2-core-foundation@0.3.1 objc2-core-graphics@0.3.1 objc2-encode@4.1.0 objc2-foundation@0.3.1 objc2-io-surface@0.3.1 objc2@0.6.2 object@0.36.7 once_cell@1.21.3 once_cell_polyfill@1.70.1 openssl-macros@0.1.1 openssl-probe@0.1.6 openssl-src@300.5.1+3.5.1 openssl-sys@0.9.109 openssl@0.10.73 opentelemetry-appender-tracing@0.30.1 opentelemetry-http@0.30.0 opentelemetry-otlp@0.30.0 opentelemetry-proto@0.30.0 opentelemetry-semantic-conventions@0.30.0 opentelemetry@0.30.0 opentelemetry_sdk@0.30.0 option-ext@0.2.0 ordered-stream@0.2.0 os_info@3.12.0 owo-colors@4.2.2 parking@2.2.1 parking_lot@0.12.4 parking_lot_core@0.9.11 paste@1.0.15 path-absolutize@3.1.1 path-dedot@3.1.1 pathdiff@0.2.3 percent-encoding@2.3.1 petgraph@0.6.5 phf_shared@0.11.3 pin-project-internal@1.1.10 pin-project-lite@0.2.16 pin-project@1.1.10 pin-utils@0.1.0 piper@0.2.4 pkg-config@0.3.32 plist@1.7.4 png@0.18.0 polling@3.11.0 portable-atomic-util@0.2.4 portable-atomic@1.11.1 portable-pty@0.9.0 potential_utf@0.1.2 powerfmt@0.2.0 ppv-lite86@0.2.21 precomputed-hash@0.1.1 predicates-core@1.0.9 predicates-tree@1.0.12 predicates@3.1.3 pretty_assertions@1.4.1 proc-macro-crate@3.4.0 proc-macro2@1.0.95 process-wrap@8.2.1 prost-derive@0.13.5 prost@0.13.5 pulldown-cmark-escape@0.10.1 pulldown-cmark@0.10.3 pxfm@0.1.23 quick-error@2.0.1 quick-xml@0.38.0 quinn-proto@0.11.13 quinn-udp@0.5.14 quinn@0.11.9 quote@1.0.40 r-efi@5.3.0 radix_trie@0.2.1 rand@0.8.5 rand@0.9.2 rand_chacha@0.3.1 rand_chacha@0.9.0 rand_core@0.6.4 rand_core@0.9.3 ratatui-macros@0.6.0 redox_syscall@0.5.15 redox_users@0.4.6 redox_users@0.5.0 ref-cast-impl@1.0.24 ref-cast@1.0.24 regex-automata@0.4.9 regex-lite@0.1.7 regex-syntax@0.6.29 regex-syntax@0.8.5 regex@1.11.1 reqwest@0.12.23 ring@0.17.14 rmcp-macros@0.8.3 rmcp@0.8.3 rustc-demangle@0.1.25 rustc-hash@1.1.0 rustc-hash@2.1.1 rustc_version@0.4.1 rustix@0.38.44 rustix@1.0.8 rustls-native-certs@0.8.1 rustls-pki-types@1.12.0 rustls-webpki@0.103.4 rustls@0.23.29 rustversion@1.0.21 rustyline@14.0.0 ryu@1.0.20 same-file@1.0.6 scc@2.4.0 schannel@0.1.28 schemafy@0.5.2 schemafy_core@0.5.2 schemafy_lib@0.5.2 schemars@0.8.22 schemars@0.9.0 schemars@1.0.4 schemars_derive@0.8.22 schemars_derive@1.0.4 scopeguard@1.2.0 sdd@3.0.10 seccompiler@0.5.0 secret-service@4.0.0 security-framework-sys@2.15.0 security-framework@2.11.1 security-framework@3.5.1 semver@1.0.27 sentry-backtrace@0.34.0 sentry-contexts@0.34.0 sentry-core@0.34.0 sentry-debug-images@0.34.0 sentry-panic@0.34.0 sentry-tracing@0.34.0 sentry-types@0.34.0 sentry@0.34.0 serde@1.0.226 serde_core@1.0.226 serde_derive@1.0.226 serde_derive_internals@0.29.1 serde_json@1.0.145 serde_path_to_error@0.1.20 serde_repr@0.1.20 serde_spanned@1.0.0 serde_urlencoded@0.7.1 serde_with@3.14.0 serde_with_macros@3.14.0 serial2@0.2.31 serial_test@3.2.0 serial_test_derive@3.2.0 sha1@0.10.6 sha2@0.10.9 sharded-slab@0.1.7 shared_library@0.1.9 shell-words@1.1.0 shlex@1.3.0 signal-hook-mio@0.2.4 signal-hook-registry@1.4.5 signal-hook@0.3.18 simd-adler32@0.3.7 simdutf8@0.1.5 similar@2.7.0 siphasher@1.0.1 slab@0.4.11 smallvec@1.15.1 smawk@0.3.2 socket2@0.5.10 socket2@0.6.0 sse-stream@0.2.1 stable_deref_trait@1.2.0 starlark@0.13.0 starlark_derive@0.13.0 starlark_map@0.13.0 starlark_syntax@0.13.0 static_assertions@1.1.0 streaming-iterator@0.1.9 string_cache@0.8.9 strsim@0.10.0 strsim@0.11.1 strum@0.26.3 strum@0.27.2 strum_macros@0.26.4 strum_macros@0.27.2 subtle@2.6.1 supports-color@3.0.2 syn@1.0.109 syn@2.0.104 sync_wrapper@1.0.2 synstructure@0.13.2 sys-locale@0.3.2 system-configuration-sys@0.6.0 system-configuration@0.6.1 tempfile@3.23.0 term@0.7.0 termcolor@1.4.1 terminal_size@0.4.2 termtree@0.5.1 test-log-macros@0.2.18 test-log@0.2.18 textwrap@0.11.0 textwrap@0.16.2 thiserror-impl@1.0.69 thiserror-impl@2.0.16 thiserror@1.0.69 thiserror@2.0.16 thread_local@1.1.9 tiff@0.10.3 tiktoken-rs@0.7.0 time-core@0.1.6 time-macros@0.2.24 time@0.3.44 tiny-keccak@2.0.2 tiny_http@0.12.0 tinystr@0.8.1 tinyvec@1.10.0 tinyvec_macros@0.1.1 tokio-macros@2.5.0 tokio-native-tls@0.3.1 tokio-rustls@0.26.2 tokio-stream@0.1.17 tokio-test@0.4.4 tokio-util@0.7.16 tokio@1.47.1 toml@0.9.5 toml_datetime@0.7.0 toml_edit@0.23.4 toml_parser@1.0.2 toml_writer@1.0.2 tonic@0.13.1 tower-http@0.6.6 tower-layer@0.3.3 tower-service@0.3.3 tower@0.5.2 tracing-appender@0.2.3 tracing-attributes@0.1.30 tracing-core@0.1.34 tracing-error@0.2.1 tracing-log@0.2.0 tracing-subscriber@0.3.20 tracing-test-macro@0.2.5 tracing-test@0.2.5 tracing@0.1.41 tree-sitter-bash@0.25.0 tree-sitter-highlight@0.25.10 tree-sitter-language@0.1.5 tree-sitter@0.25.10 try-lock@0.2.5 ts-rs-macros@11.0.1 ts-rs@11.0.1 typenum@1.18.0 uds_windows@1.1.0 uname@0.1.1 unicase@2.8.1 unicode-ident@1.0.18 unicode-linebreak@0.1.5 unicode-segmentation@1.12.0 unicode-truncate@1.1.0 unicode-width@0.1.14 unicode-width@0.2.1 unicode-xid@0.2.6 untrusted@0.9.0 ureq@2.12.1 url@2.5.4 urlencoding@2.1.3 utf8_iter@1.0.4 utf8parse@0.2.2 uuid@1.18.1 valuable@0.1.1 vcpkg@0.2.15 version_check@0.9.5 vt100@0.16.2 vte@0.15.0 wait-timeout@0.2.1 walkdir@2.5.0 want@0.3.1 wasi@0.11.1+wasi-snapshot-preview1 wasi@0.14.2+wasi-0.2.4 wasm-bindgen-backend@0.2.100 wasm-bindgen-futures@0.4.50 wasm-bindgen-macro-support@0.2.100 wasm-bindgen-macro@0.2.100 wasm-bindgen-shared@0.2.100 wasm-bindgen@0.2.100 wasm-streams@0.4.2 web-sys@0.3.77 web-time@1.1.0 webbrowser@1.0.5 webpki-roots@1.0.2 weezl@0.1.10 which@6.0.3 wildmatch@2.5.0 winapi-i686-pc-windows-gnu@0.4.0 winapi-util@0.1.9 winapi-x86_64-pc-windows-gnu@0.4.0 winapi@0.3.9 windows-collections@0.2.0 windows-core@0.61.2 windows-future@0.2.1 windows-implement@0.60.0 windows-interface@0.59.1 windows-link@0.1.3 windows-link@0.2.0 windows-numerics@0.2.0 windows-registry@0.5.3 windows-result@0.3.4 windows-strings@0.4.2 windows-sys@0.45.0 windows-sys@0.52.0 windows-sys@0.59.0 windows-sys@0.60.2 windows-sys@0.61.1 windows-targets@0.42.2 windows-targets@0.48.5 windows-targets@0.52.6 windows-targets@0.53.2 windows-threading@0.1.0 windows@0.61.3 windows_aarch64_gnullvm@0.42.2 windows_aarch64_gnullvm@0.48.5 windows_aarch64_gnullvm@0.52.6 windows_aarch64_gnullvm@0.53.0 windows_aarch64_msvc@0.42.2 windows_aarch64_msvc@0.48.5 windows_aarch64_msvc@0.52.6 windows_aarch64_msvc@0.53.0 windows_i686_gnu@0.42.2 windows_i686_gnu@0.48.5 windows_i686_gnu@0.52.6 windows_i686_gnu@0.53.0 windows_i686_gnullvm@0.52.6 windows_i686_gnullvm@0.53.0 windows_i686_msvc@0.42.2 windows_i686_msvc@0.48.5 windows_i686_msvc@0.52.6 windows_i686_msvc@0.53.0 windows_x86_64_gnu@0.42.2 windows_x86_64_gnu@0.48.5 windows_x86_64_gnu@0.52.6 windows_x86_64_gnu@0.53.0 windows_x86_64_gnullvm@0.42.2 windows_x86_64_gnullvm@0.48.5 windows_x86_64_gnullvm@0.52.6 windows_x86_64_gnullvm@0.53.0 windows_x86_64_msvc@0.42.2 windows_x86_64_msvc@0.48.5 windows_x86_64_msvc@0.52.6 windows_x86_64_msvc@0.53.0 winnow@0.7.12 winreg@0.10.1 winsafe@0.0.19 wiremock@0.6.5 wit-bindgen-rt@0.39.0 writeable@0.6.1 x11rb-protocol@0.13.1 x11rb@0.13.1 xdg-home@1.3.0 yansi@1.0.1 yoke-derive@0.8.0 yoke@0.8.0 zbus@4.4.0 zbus_macros@4.4.0 zbus_names@3.0.0 zerocopy-derive@0.8.26 zerocopy@0.8.26 zerofrom-derive@0.1.6 zerofrom@0.1.6 zeroize@1.8.1 zeroize_derive@1.4.2 zerotrie@0.2.2 zerovec-derive@0.11.1 zerovec@0.11.2 zune-core@0.4.12 zune-jpeg@0.4.19 zvariant@4.2.0 zvariant_derive@4.2.0 zvariant_utils@2.1.0 " declare -A GIT_CRATES=( [ratatui]='https://github.com/nornagon/ratatui;9b2ad1298408c45918ee9f8241a6f95498cdbed2;ratatui-%commit%' ) RUST_MIN_VER="1.85.0" inherit cargo DESCRIPTION="Lightweight coding agent for ChatGPT by OpenAI that runs in your terminal" HOMEPAGE="https://github.com/openai/codex https://openai.com/codex/" SRC_URI="https://github.com/openai/codex/archive/refs/tags/rust-v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " S="${WORKDIR}/codex-rust-v${PV/_/-}/codex-rs" LICENSE=" Apache-2.0 BSD-2 BSD Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 ZLIB " SLOT="0" KEYWORDS="~amd64" DEPEND=" dev-libs/openssl:= " src_prepare() { default # Cargo offline fetch workaround local RATATUI_GIT="ratatui = { git = \"https://github.com/nornagon/ratatui\", branch = \"nornagon-v0.29.0-patch\"" local RATATUI_PATH="ratatui = \\{ path = \"${WORKDIR}/ratatui-9b2ad1298408c45918ee9f8241a6f95498cdbed2\"" sed -e "s#${RATATUI_GIT}#${RATATUI_PATH}#" \ -i "${S}/Cargo.toml" || die "Cargo fetch workaround failed" } src_install() { newbin $(cargo_target_dir)/codex codex dodoc README.md }