# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 CRATES=" adler2@2.0.1 ahash@0.8.12 aho-corasick@1.1.4 android_system_properties@0.1.5 anstream@0.6.21 anstyle-parse@0.2.7 anstyle-query@1.1.5 anstyle-wincon@3.0.11 anstyle@1.0.13 anyhow@1.0.102 autocfg@1.5.0 automod@1.0.16 base64@0.22.1 bitflags@2.11.0 block-buffer@0.10.4 bstr@1.12.1 bumpalo@3.20.2 cc@1.2.56 cfg-if@1.0.4 chrono@0.4.44 clap@4.5.60 clap_builder@4.5.60 clap_derive@4.5.55 clap_lex@1.0.0 colorchoice@1.0.4 colored@2.2.0 core-foundation-sys@0.8.7 cpufeatures@0.2.17 crc32fast@1.5.0 crossbeam-deque@0.8.6 crossbeam-epoch@0.9.18 crossbeam-utils@0.8.21 crypto-common@0.1.7 digest@0.10.7 dirs-sys@0.4.1 dirs@5.0.1 displaydoc@0.2.5 env_home@0.1.0 equivalent@1.0.2 errno@0.3.14 fallible-iterator@0.3.0 fallible-streaming-iterator@0.1.9 fastrand@2.3.0 find-msvc-tools@0.1.9 flate2@1.1.9 foldhash@0.1.5 form_urlencoded@1.2.2 generic-array@0.14.7 getrandom@0.2.17 getrandom@0.4.2 globset@0.4.18 hashbrown@0.14.5 hashbrown@0.15.5 hashbrown@0.16.1 hashlink@0.9.1 heck@0.5.0 iana-time-zone-haiku@0.1.2 iana-time-zone@0.1.65 icu_collections@2.1.1 icu_locale_core@2.1.1 icu_normalizer@2.1.1 icu_normalizer_data@2.1.1 icu_properties@2.1.2 icu_properties_data@2.1.2 icu_provider@2.1.1 id-arena@2.3.0 idna@1.1.0 idna_adapter@1.2.1 ignore@0.4.25 indexmap@2.13.0 is_terminal_polyfill@1.70.2 itoa@1.0.17 js-sys@0.3.91 lazy_static@1.5.0 leb128fmt@0.1.0 libc@0.2.182 libredox@0.1.14 libsqlite3-sys@0.28.0 linux-raw-sys@0.12.1 litemap@0.8.1 log@0.4.29 memchr@2.8.0 miniz_oxide@0.8.9 num-traits@0.2.19 once_cell@1.21.3 once_cell_polyfill@1.70.2 option-ext@0.2.0 percent-encoding@2.3.2 pkg-config@0.3.32 potential_utf@0.1.4 prettyplease@0.2.37 proc-macro2@1.0.106 quick-xml@0.37.5 quote@1.0.45 r-efi@6.0.0 redox_users@0.4.6 regex-automata@0.4.14 regex-syntax@0.8.10 regex@1.12.3 ring@0.17.14 rusqlite@0.31.0 rustix@1.1.4 rustls-pki-types@1.14.0 rustls-webpki@0.103.13 rustls@0.23.37 rustversion@1.0.22 same-file@1.0.6 semver@1.0.27 serde@1.0.228 serde_core@1.0.228 serde_derive@1.0.228 serde_json@1.0.149 serde_spanned@0.6.9 sha2@0.10.9 shlex@1.3.0 simd-adler32@0.3.8 smallvec@1.15.1 stable_deref_trait@1.2.1 strsim@0.11.1 subtle@2.6.1 syn@2.0.117 synstructure@0.13.2 tempfile@3.26.0 thiserror-impl@1.0.69 thiserror@1.0.69 tinystr@0.8.2 toml@0.8.23 toml_datetime@0.6.11 toml_edit@0.22.27 toml_write@0.1.2 typenum@1.19.0 unicode-ident@1.0.24 unicode-xid@0.2.6 untrusted@0.9.0 ureq@2.12.1 url@2.5.8 utf8_iter@1.0.4 utf8parse@0.2.2 vcpkg@0.2.15 version_check@0.9.5 walkdir@2.5.0 wasi@0.11.1+wasi-snapshot-preview1 wasip2@1.0.2+wasi-0.2.9 wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06 wasm-bindgen-macro-support@0.2.114 wasm-bindgen-macro@0.2.114 wasm-bindgen-shared@0.2.114 wasm-bindgen@0.2.114 wasm-encoder@0.244.0 wasm-metadata@0.244.0 wasmparser@0.244.0 webpki-roots@0.26.11 webpki-roots@1.0.6 which@8.0.1 winapi-util@0.1.11 windows-core@0.62.2 windows-implement@0.60.2 windows-interface@0.59.3 windows-link@0.2.1 windows-result@0.4.1 windows-strings@0.5.1 windows-sys@0.48.0 windows-sys@0.52.0 windows-sys@0.59.0 windows-sys@0.61.2 windows-targets@0.48.5 windows-targets@0.52.6 windows_aarch64_gnullvm@0.48.5 windows_aarch64_gnullvm@0.52.6 windows_aarch64_msvc@0.48.5 windows_aarch64_msvc@0.52.6 windows_i686_gnu@0.48.5 windows_i686_gnu@0.52.6 windows_i686_gnullvm@0.52.6 windows_i686_msvc@0.48.5 windows_i686_msvc@0.52.6 windows_x86_64_gnu@0.48.5 windows_x86_64_gnu@0.52.6 windows_x86_64_gnullvm@0.48.5 windows_x86_64_gnullvm@0.52.6 windows_x86_64_msvc@0.48.5 windows_x86_64_msvc@0.52.6 winnow@0.7.15 winsafe@0.0.19 wit-bindgen-core@0.51.0 wit-bindgen-rust-macro@0.51.0 wit-bindgen-rust@0.51.0 wit-bindgen@0.51.0 wit-component@0.244.0 wit-parser@0.244.0 writeable@0.6.2 yoke-derive@0.8.1 yoke@0.8.1 zerocopy-derive@0.8.40 zerocopy@0.8.40 zerofrom-derive@0.1.6 zerofrom@0.1.6 zeroize@1.8.2 zerotrie@0.2.3 zerovec-derive@0.11.2 zerovec@0.11.5 zmij@1.0.21 " RUST_MIN_VER="1.87.0" inherit cargo DESCRIPTION="Rust Token Killer — CLI proxy that reduces LLM token consumption" HOMEPAGE=" https://www.rtk-ai.app/ https://github.com/rtk-ai/rtk " SRC_URI=" https://github.com/rtk-ai/rtk/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz ${CARGO_CRATE_URIS} " # Apache-2.0 per the shipped LICENSE file. Note that Cargo.toml claims # license = "MIT"; the LICENSE file disagrees and matches the GitHub # project metadata, so go with Apache-2.0. The bundled crate set carries # the usual permissive mix (Apache-2.0 / MIT / BSD / ISC / MPL-2.0 / # Unicode-3.0 / Unlicense); the cargo eclass surfaces those at unpack. LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" # rusqlite 0.31 is pulled in with the "bundled" feature so SQLite is # compiled into the binary; flate2 builds against miniz_oxide (pure # Rust) by default. No system C library deps.