dev-util/rtk - 1.2.1 (stuff)

Search

Install

Install this version:

emerge -a =dev-util/rtk-1.2.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/rtk-1.2.1

Or alternatively:

emerge --autounmask-write -a =dev-util/rtk-1.2.1

Package Information

Description:
Rust Token Killer — CLI proxy that reduces LLM token consumption
Homepage:
https://www.rtk-ai.app/ https://github.com/rtk-ai/rtk
License:
Apache-2.0 engine? ( BUSL-1.1 ) Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CDLA-Permissive-2.0 ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB

Ebuild Details

Version EAPI Keywords Slot
1.2.1 8 ~amd64 ~arm ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="
	adler2@2.0.1
	aho-corasick@1.1.4
	allocator-api2@0.2.21
	android_system_properties@0.1.5
	anstream@1.0.0
	anstyle-parse@1.0.0
	anstyle-query@1.1.5
	anstyle-wincon@3.0.11
	anstyle@1.0.14
	anyhow@1.0.104
	approx@0.5.1
	ar_archive_writer@0.5.3
	atomic@0.6.1
	autocfg@1.5.0
	base16ct@1.0.0
	base64@0.22.1
	base64@0.23.1
	bit-set@0.5.3
	bit-vec@0.6.3
	bitflags@1.3.2
	bitflags@2.13.2
	block-buffer@0.10.4
	block-buffer@0.12.1
	bstr@1.12.1
	bumpalo@3.20.2
	by_address@1.2.1
	bytemuck@1.25.2
	bytes@1.12.1
	castaway@0.2.4
	cc@1.2.56
	cfg-if@1.0.4
	cfg_aliases@0.2.2
	chrono@0.4.44
	clap@4.6.7
	clap_builder@4.6.7
	clap_derive@4.6.7
	clap_lex@1.0.0
	codepage@0.1.3
	colorchoice@1.0.4
	colored@3.1.1
	compact_str@0.9.1
	const-oid@0.10.3
	convert_case@0.10.0
	cookie@0.18.2
	cookie_store@0.22.1
	core-foundation-sys@0.8.7
	core_detect@1.0.0
	cpufeatures@0.2.17
	cpufeatures@0.3.1
	crc32fast@1.5.0
	critical-section@1.2.0
	crossbeam-deque@0.8.6
	crossbeam-epoch@0.9.21
	crossbeam-utils@0.8.21
	crossterm@0.29.0
	crossterm_winapi@0.9.1
	crypto-common@0.1.7
	crypto-common@0.2.2
	csscolorparser@0.6.2
	darling@0.24.1
	darling_core@0.24.1
	darling_macro@0.24.1
	deltae@0.3.2
	deranged@0.5.9
	derive_more-impl@2.1.1
	derive_more@2.1.1
	digest@0.10.7
	digest@0.11.3
	dirs-sys@0.5.0
	dirs@7.0.0
	displaydoc@0.2.5
	document-features@0.2.12
	either@1.18.0
	encoding_rs@0.8.42
	equivalent@1.0.2
	errno@0.3.14
	euclid@0.22.14
	fallible-iterator@0.3.0
	fallible-streaming-iterator@0.1.9
	fancy-regex@0.11.0
	fastrand@2.3.0
	filedescriptor@0.8.3
	find-msvc-tools@0.1.9
	finl_unicode@1.5.1
	fixedbitset@0.4.2
	flate2@1.1.9
	fnv@1.0.7
	foldhash@0.1.5
	foldhash@0.2.0
	form_urlencoded@1.2.2
	generic-array@0.14.7
	getrandom@0.2.17
	getrandom@0.3.4
	getrandom@0.4.3
	globset@0.4.18
	hashbrown@0.15.5
	hashbrown@0.16.1
	hashbrown@0.17.1
	hashlink@0.10.0
	heck@0.5.0
	hex@0.4.3
	htmd@0.5.5
	html5ever@0.38.0
	http@1.5.0
	httparse@1.10.1
	hybrid-array@0.4.15
	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
	ident_case@1.0.1
	idna@1.1.0
	idna_adapter@1.2.1
	ignore@0.4.33
	indexmap@2.13.0
	indoc@2.0.7
	instability@0.3.13
	is_terminal_polyfill@1.70.2
	itertools@0.14.0
	itoa@1.0.17
	js-sys@0.3.91
	kasuari@0.4.13
	lab@0.11.0
	lazy_static@1.5.1
	libc@0.2.191
	libm@0.2.16
	libmimalloc-sys@0.1.49
	libredox@0.1.14
	libsqlite3-sys@0.32.0
	line-clipping@0.3.8
	linux-raw-sys@0.12.1
	litemap@0.8.1
	litrs@1.0.1
	lock_api@0.4.14
	log@0.4.29
	lru@0.18.5
	mac_address@1.2.1
	markup5ever@0.38.0
	markup5ever_rcdom@0.38.0+unofficial
	memchr@2.8.0
	memmem@0.1.1
	memoffset@0.9.1
	mimalloc@0.1.52
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	mio@1.1.1
	multiversion_no_op@1.0.0
	new_debug_unreachable@1.0.6
	nix@0.29.0
	nix@0.31.3
	nom@7.1.3
	num-conv@0.2.2
	num-derive@0.4.2
	num-traits@0.2.19
	num_threads@0.1.8
	object@0.39.1
	oem_cp@2.1.2
	once_cell@1.21.3
	once_cell_polyfill@1.70.2
	option-ext@0.2.0
	ordered-float@4.6.0
	palette@0.7.7
	palette_derive@0.7.7
	palette_math@0.7.7
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	percent-encoding@2.3.2
	pest@2.9.5
	pest_derive@2.9.5
	pest_generator@2.9.5
	pest_meta@2.9.5
	pest_stack_guard@1.0.1
	phf@0.11.3
	phf@0.13.1
	phf_codegen@0.11.3
	phf_codegen@0.13.1
	phf_generator@0.11.3
	phf_generator@0.13.1
	phf_macros@0.11.3
	phf_macros@0.13.1
	phf_shared@0.11.3
	phf_shared@0.13.1
	pkg-config@0.3.32
	portable-atomic@1.15.0
	potential_utf@0.1.4
	powerfmt@0.2.1
	precomputed-hash@0.1.1
	proc-macro2@1.0.106
	psm@0.1.32
	quick-xml@0.42.0
	quote@1.0.45
	r-efi@5.3.0
	r-efi@6.0.0
	rand@0.8.8
	rand_core@0.6.4
	ratatui-core@0.1.2
	ratatui-crossterm@0.1.2
	ratatui-macros@0.7.2
	ratatui-termina@0.1.0
	ratatui-termwiz@0.1.2
	ratatui-widgets@0.3.2
	ratatui@0.30.2
	redox_syscall@0.5.18
	redox_users@0.5.3
	regex-automata@0.4.18
	regex-syntax@0.8.10
	regex@1.12.3
	ring@0.17.14
	rusqlite@0.34.0
	rustc_version@0.4.1
	rustix@1.1.6
	rustls-pki-types@1.14.0
	rustls-webpki@0.103.16
	rustls@0.23.46
	rustversion@1.0.22
	ryu@1.0.23
	same-file@1.0.6
	scopeguard@1.2.0
	semver@1.0.28
	serde@1.0.229
	serde_core@1.0.229
	serde_derive@1.0.229
	serde_json@1.0.154
	serde_spanned@0.6.9
	sha2@0.10.9
	sha2@0.11.1
	shlex@1.3.0
	signal-hook-mio@0.2.5
	signal-hook-registry@1.4.8
	signal-hook@0.3.18
	simd-adler32@0.3.8
	simdutf8@0.1.5
	siphasher@1.0.3
	smallvec@1.15.1
	stable_deref_trait@1.2.1
	stacker@0.1.25
	static_assertions@1.1.0
	string_cache@0.9.0
	string_cache_codegen@0.6.1
	strsim@0.11.1
	strum@0.28.0
	strum_macros@0.28.0
	subtle@2.6.1
	syn@1.0.109
	syn@2.0.117
	syn@3.0.5
	synstructure@0.13.2
	temp-env@0.3.6
	tempfile@3.26.0
	tendril@0.5.1
	termina@0.3.3
	terminfo@0.9.0
	termios@0.3.3
	termwiz@0.23.3
	thiserror-impl@1.0.69
	thiserror-impl@2.0.20
	thiserror@1.0.69
	thiserror@2.0.20
	time-core@0.1.9
	time-macros@0.2.32
	time@0.3.55
	tinystr@0.8.2
	toml@0.8.23
	toml_datetime@0.6.11
	toml_edit@0.22.27
	toml_write@0.1.2
	toon-format@0.7.0
	typenum@1.20.1
	ucd-trie@0.1.7
	unicode-ident@1.0.24
	unicode-segmentation@1.13.3
	unicode-truncate@2.0.1
	unicode-width@0.2.0
	untrusted@0.9.0
	ureq-proto@0.7.1
	ureq@3.5.1
	url@2.5.8
	utf8-zero@0.8.1
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.29.0
	vcpkg@0.2.15
	version_check@0.9.5
	vtparse@0.6.2
	walkdir@2.5.0
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.4+wasi-0.2.12
	wasm-bindgen-macro-support@0.2.114
	wasm-bindgen-macro@0.2.114
	wasm-bindgen-shared@0.2.114
	wasm-bindgen@0.2.114
	web_atoms@0.2.6
	webpki-roots@1.0.11
	wezterm-bidi@0.2.3
	wezterm-blob-leases@0.1.1
	wezterm-color-types@0.3.0
	wezterm-dynamic-derive@0.1.1
	wezterm-dynamic@0.2.1
	wezterm-input-types@0.1.0
	which@8.0.6
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.11
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	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.52.0
	windows-sys@0.61.2
	windows-targets@0.52.6
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.52.6
	winnow@0.7.15
	wit-bindgen@0.57.1
	writeable@0.6.2
	xml5ever@0.38.0
	yoke-derive@0.8.1
	yoke@0.8.1
	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.91.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}
"

# The default build links the rtk-engine compression core, which is
# BUSL-1.1 with an Additional Use Grant; USE=-engine builds the Apache-2.0
# edition without it. verified 2026-11-09
LICENSE="Apache-2.0 engine? ( BUSL-1.1 )"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CDLA-Permissive-2.0
	ISC MIT MPL-2.0 Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE="+engine"

# rusqlite enables the bundled SQLite of libsqlite3-sys 0.32, which checks
# LIBSQLITE3_SYS_USE_PKG_CONFIG first, so link the system library instead.
# The one LIKE query only feeds telemetry, so the ICU slowdown of
# bug #959120 does not apply. verified 2026-10-02
DEPEND="dev-db/sqlite:3"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}/${PN}-1.2.1-cargo-lock-rustsec.patch"
)

src_configure() {
	export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
	local myfeatures=( $(usev engine) )
	cargo_src_configure --no-default-features
}

src_install() {
	cargo_src_install
	if use engine; then
		newdoc engine/LICENSE LICENSE-ENGINE
	fi
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/rtk | euse -E <flag> -p dev-util/rtk | euse -D <flag> -p dev-util/rtk

Global/Standard Flags

engine
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

dev-db/sqlite:3

RDEPEND

dev-db/sqlite:3

BDEPEND

virtual/pkgconfig

Manifest for 1.2.1

Type File Size Source URLs
DIST rtk-1.2.1.tar.gz 5194532 bytes https://github.com/rtk-ai/rtk/archive/refs/tags/v1.2.1.tar.gz