# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

CRATES="addr2line@0.24.2
	adler2@2.0.0
	adler32@1.2.0
	ahash@0.7.8
	ahash@0.8.11
	aho-corasick@1.1.3
	android-tzdata@0.1.1
	android_system_properties@0.1.5
	anstream@0.6.15
	anstyle-parse@0.2.5
	anstyle-query@1.1.1
	anstyle-wincon@3.0.4
	anstyle@1.0.8
	anyhow@1.0.91
	approx@0.5.1
	arbitrary@1.3.2
	arrayvec@0.7.6
	async-stream-impl@0.3.6
	async-stream@0.3.6
	async-trait@0.1.83
	atomic-waker@1.1.2
	autocfg@1.4.0
	axum-core@0.3.4
	axum@0.6.20
	backtrace@0.3.74
	base64@0.13.1
	base64@0.21.7
	base64@0.22.1
	big_enum_set@0.3.0
	big_enum_set_derive@0.3.0
	bigml@1.0.1
	bigml_derive@0.4.1
	bit-set@0.5.3
	bit-vec@0.6.3
	bitflags@1.3.2
	bitflags@2.6.0
	bitvec@1.0.1
	block-buffer@0.10.4
	borsh-derive@1.5.1
	borsh@1.5.1
	bstr@1.10.0
	bumpalo@3.16.0
	bytecheck@0.6.12
	bytecheck_derive@0.6.12
	byteorder@1.5.0
	bytes@1.8.0
	cast@0.3.0
	cc@1.1.31
	cfg-if@1.0.0
	cfg_aliases@0.2.1
	chrono@0.4.38
	clap@4.5.20
	clap_builder@4.5.20
	clap_derive@4.5.18
	clap_lex@0.7.2
	cli_test_dir@0.1.8
	codespan-reporting@0.11.1
	colorchoice@1.0.2
	core-foundation-sys@0.8.7
	core-foundation@0.9.4
	cpufeatures@0.2.14
	crc32c@0.6.8
	crc32fast@1.4.2
	crossbeam-channel@0.5.13
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.20
	crypto-common@0.1.6
	csv-core@0.1.11
	csv@1.3.0
	ct-logs@0.8.0
	darling@0.20.10
	darling_core@0.20.10
	darling_macro@0.20.10
	deranged@0.3.11
	derive_arbitrary@1.3.2
	diff@0.1.13
	difference@2.0.0
	digest@0.10.7
	dirs-sys@0.4.1
	dirs@5.0.1
	either@1.13.0
	encoding_rs@0.8.34
	endian-type@0.1.2
	equivalent@1.0.1
	errno@0.3.9
	fallible-iterator@0.2.0
	fastrand@2.1.1
	flate2@1.0.34
	float-cmp@0.10.0
	fnv@1.0.7
	form_urlencoded@1.2.1
	funty@2.0.0
	futures-channel@0.3.31
	futures-core@0.3.31
	futures-executor@0.3.31
	futures-io@0.3.31
	futures-macro@0.3.31
	futures-sink@0.3.31
	futures-task@0.3.31
	futures-util@0.3.31
	futures@0.3.31
	generic-array@0.14.7
	geo-types@0.7.13
	geojson@0.24.1
	getrandom@0.2.15
	gimli@0.31.1
	h2@0.3.26
	h2@0.4.6
	hashbrown@0.12.3
	hashbrown@0.13.1
	hashbrown@0.15.0
	headers-core@0.2.0
	headers@0.3.9
	heck@0.4.1
	heck@0.5.0
	hermit-abi@0.3.9
	hex@0.4.3
	hmac@0.12.1
	http-body-util@0.1.2
	http-body@0.4.6
	http-body@1.0.1
	http@0.2.12
	http@1.1.0
	httparse@1.9.5
	httpdate@1.0.3
	humanize-rs@0.1.5
	hyper-rustls@0.22.1
	hyper-rustls@0.24.2
	hyper-rustls@0.27.3
	hyper-timeout@0.4.1
	hyper-util@0.1.9
	hyper@0.14.31
	hyper@1.5.0
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.61
	ident_case@1.0.1
	idna@0.5.0
	include-flate-codegen-exports@0.1.4
	include-flate-codegen@0.1.4
	include-flate@0.2.0
	indexmap@1.9.3
	indexmap@2.6.0
	ipnet@2.10.1
	is_terminal_polyfill@1.70.1
	itertools@0.10.5
	itertools@0.11.0
	itertools@0.12.1
	itoa@1.0.11
	js-sys@0.3.72
	lazy_static@1.5.0
	libc@0.2.161
	libflate@1.4.0
	libflate_lz77@1.2.0
	libm@0.2.8
	libredox@0.1.3
	linux-raw-sys@0.4.14
	lock_api@0.4.12
	log@0.4.22
	mach2@0.4.2
	matchers@0.1.0
	matchit@0.7.3
	md-5@0.10.6
	memchr@2.7.4
	metrics-macros@0.7.1
	metrics-util@0.15.1
	metrics@0.21.1
	mime@0.3.17
	mime_guess@2.0.5
	miniz_oxide@0.8.0
	mio@1.0.2
	nibble_vec@0.1.0
	normpath@1.3.0
	nu-ansi-term@0.46.0
	num-conv@0.1.0
	num-traits@0.2.19
	num_cpus@1.16.0
	num_threads@0.1.7
	object@0.36.5
	once_cell@1.20.2
	opener@0.6.1
	openssl-probe@0.1.5
	opentelemetry-semantic-conventions@0.12.0
	opentelemetry-stackdriver@0.17.0
	opentelemetry@0.20.0
	opentelemetry_api@0.20.0
	opentelemetry_sdk@0.20.0
	option-ext@0.2.0
	ordered-float@3.9.2
	overload@0.1.1
	parking_lot@0.12.3
	parking_lot_core@0.9.10
	parse_link_header@0.3.3
	peg-macros@0.8.4
	peg-runtime@0.8.3
	peg@0.8.4
	percent-encoding@2.3.1
	phf@0.11.2
	phf_shared@0.11.2
	pin-project-internal@1.1.6
	pin-project-lite@0.2.14
	pin-project@1.1.6
	pin-utils@0.1.0
	portable-atomic@1.9.0
	postgis@0.9.0
	postgres-protocol@0.6.7
	postgres-types@0.2.8
	powerfmt@0.2.0
	ppv-lite86@0.2.20
	pretty_assertions@1.4.1
	proc-macro-crate@3.2.0
	proc-macro-error-attr@1.0.4
	proc-macro-error@1.0.4
	proc-macro-hack@0.5.20+deprecated
	proc-macro2@1.0.89
	proptest-arbitrary-interop@0.1.0
	proptest-derive@0.5.0
	proptest@1.5.0
	prost-derive@0.11.9
	prost-types@0.11.9
	prost@0.11.9
	ptr_meta@0.1.4
	ptr_meta_derive@0.1.4
	quanta@0.11.1
	quick-error@1.2.3
	quote@1.0.37
	radium@0.7.0
	radix_trie@0.2.1
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	rand_xorshift@0.3.0
	raw-cpuid@10.7.0
	redox_syscall@0.5.7
	redox_users@0.4.6
	regex-automata@0.1.10
	regex-automata@0.4.8
	regex-syntax@0.6.29
	regex-syntax@0.8.5
	regex@1.11.0
	rend@0.4.2
	reqwest@0.11.27
	reqwest@0.12.8
	ring@0.16.20
	ring@0.17.8
	rkyv@0.7.45
	rkyv_derive@0.7.45
	rle-decode-fast@1.0.3
	rust_decimal@1.36.0
	rustc-demangle@0.1.24
	rustc_version@0.4.1
	rustix@0.38.37
	rustls-native-certs@0.5.0
	rustls-native-certs@0.6.3
	rustls-pemfile@1.0.4
	rustls-pki-types@1.10.0
	rustls-webpki@0.101.7
	rustls-webpki@0.102.8
	rustls@0.19.1
	rustls@0.20.9
	rustls@0.21.12
	rustls@0.22.4
	rustls@0.23.15
	rustversion@1.0.18
	rusty-fork@0.3.0
	ryu@1.0.18
	same-file@1.0.6
	schannel@0.1.26
	scopeguard@1.2.0
	sct@0.6.1
	sct@0.7.1
	seahash@4.1.0
	security-framework-sys@2.12.0
	security-framework@2.11.1
	semver@1.0.23
	serde@1.0.212
	serde_derive@1.0.212
	serde_json@1.0.132
	serde_urlencoded@0.7.1
	sha-1@0.10.1
	sha1@0.10.6
	sha2@0.10.8
	sharded-slab@0.1.7
	shlex@1.3.0
	signal-hook-registry@1.4.2
	simdutf8@0.1.5
	siphasher@0.3.11
	sketches-ddsketch@0.2.2
	slab@0.4.9
	smallvec@1.13.2
	socket2@0.5.7
	spin@0.5.2
	spin@0.9.8
	static_assertions@1.1.0
	stringprep@0.1.5
	strsim@0.11.1
	strum@0.25.0
	strum_macros@0.25.3
	subtle@2.6.1
	syn@1.0.109
	syn@2.0.82
	syn_derive@0.1.8
	sync_wrapper@0.1.2
	sync_wrapper@1.0.1
	system-configuration-sys@0.5.0
	system-configuration@0.5.1
	tap@1.0.1
	tempfile@3.13.0
	termcolor@1.4.1
	terminal_size@0.4.0
	thiserror-impl@1.0.65
	thiserror@1.0.65
	thread_local@1.1.8
	time-core@0.1.2
	time-macros@0.2.18
	time@0.3.36
	tinyvec@1.8.0
	tinyvec_macros@0.1.1
	tokio-io-timeout@1.2.0
	tokio-macros@2.4.0
	tokio-postgres-rustls@0.9.0
	tokio-postgres@0.7.12
	tokio-rustls@0.22.0
	tokio-rustls@0.23.4
	tokio-rustls@0.24.1
	tokio-rustls@0.26.0
	tokio-stream@0.1.16
	tokio-util@0.6.10
	tokio-util@0.7.12
	tokio@1.41.0
	toml_datetime@0.6.8
	toml_edit@0.19.15
	toml_edit@0.22.22
	tonic@0.9.2
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.4.13
	tracing-attributes@0.1.27
	tracing-core@0.1.32
	tracing-futures@0.2.5
	tracing-log@0.1.4
	tracing-log@0.2.0
	tracing-opentelemetry@0.21.0
	tracing-subscriber@0.3.18
	tracing@0.1.40
	try-lock@0.2.5
	typenum@1.17.0
	unarray@0.1.4
	unicase@2.8.0
	unicode-bidi@0.3.17
	unicode-ident@1.0.13
	unicode-normalization@0.1.24
	unicode-properties@0.1.3
	unicode-width@0.1.14
	untrusted@0.7.1
	untrusted@0.9.0
	url@2.5.2
	urlencoding@2.1.3
	utf8parse@0.2.2
	uuid@1.11.0
	valuable@0.1.0
	version_check@0.9.5
	wait-timeout@0.2.0
	walkdir@2.5.0
	want@0.3.1
	wasi@0.11.0+wasi-snapshot-preview1
	wasite@0.1.0
	wasm-bindgen-backend@0.2.95
	wasm-bindgen-futures@0.4.45
	wasm-bindgen-macro-support@0.2.95
	wasm-bindgen-macro@0.2.95
	wasm-bindgen-shared@0.2.95
	wasm-bindgen@0.2.95
	wasm-streams@0.4.1
	web-sys@0.3.72
	webpki@0.21.4
	webpki@0.22.4
	whoami@1.5.2
	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-core@0.52.0
	windows-registry@0.2.0
	windows-result@0.2.0
	windows-strings@0.1.0
	windows-sys@0.48.0
	windows-sys@0.52.0
	windows-sys@0.59.0
	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.5.40
	winnow@0.6.20
	winreg@0.50.0
	wkt@0.11.1
	wyz@0.5.1
	yansi@1.0.1
	yup-oauth2@6.1.0
	yup-oauth2@8.3.2
	zerocopy-derive@0.7.35
	zerocopy@0.7.35
	zeroize@1.8.1"

inherit cargo

MY_PV="${PV//_pre/-pre.}"
MY_P="${PN}"-${MY_PV}

DESCRIPTION="Copy tabular data between databases, CSV files and cloud storage"
HOMEPAGE="https://www.dbcrossbar.org"
SRC_URI="https://github.com/dbcrossbar/dbcrossbar/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}"
S="${WORKDIR}/${MY_P}"

LICENSE="Apache-2.0 BSD CC0-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016 ZLIB"
SLOT="0"
KEYWORDS="~amd64"

QA_FLAGS_IGNORED="usr/bin/dbcrossbar"

src_install() {
	einstalldocs
	cargo_src_install --path dbcrossbar
}