# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.16.0

EAPI=8

CRATES="
	addr2line@0.25.1
	addr2line@0.26.1
	adler2@2.0.1
	aead@0.5.2
	aes-gcm@0.10.3
	aes@0.8.4
	ahash@0.8.12
	aho-corasick@1.1.5
	allocator-api2@0.2.21
	ambient-authority@0.0.2
	android_system_properties@0.1.6
	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
	arbitrary@1.4.2
	arc-swap@1.9.2
	arraydeque@0.5.1
	asn1-rs-derive@0.5.1
	asn1-rs-derive@0.6.0
	asn1-rs-impl@0.2.0
	asn1-rs@0.6.2
	asn1-rs@0.7.2
	assert-json-diff@2.0.2
	assert_cmd@2.2.2
	async-compression@0.4.43
	async-lock@3.4.2
	async-object-pool@0.2.0
	async-stream-impl@0.3.6
	async-stream@0.3.6
	async-trait@0.1.92
	atomic-waker@1.1.2
	atomic@0.6.1
	authenticator@0.4.1
	autocfg@1.5.1
	aws-lc-rs@1.18.0
	aws-lc-sys@0.44.0
	backtrace@0.3.76
	base16ct@0.2.0
	base64@0.21.7
	base64@0.22.1
	base64@0.23.1
	base64ct@1.8.3
	base64urlsafedata@0.5.5
	bcrypt-pbkdf@0.10.0
	bit-set@0.5.3
	bit-set@0.8.0
	bit-vec@0.6.3
	bit-vec@0.8.0
	bit-vec@0.9.1
	bitflags@1.3.2
	bitflags@2.13.1
	bitmaps@2.1.0
	block-buffer@0.10.4
	block-buffer@0.12.1
	block-padding@0.3.3
	blowfish@0.9.1
	borrow-or-share@0.2.4
	bstr@1.13.1
	bumpalo@3.20.3
	by_address@1.2.1
	bytecount@0.6.9
	bytemuck@1.25.2
	byteorder@1.5.0
	bytes@1.12.1
	cap-fs-ext@3.4.6
	cap-primitives@3.4.6
	cap-rand@3.4.6
	cap-std@3.4.6
	cap-time-ext@3.4.6
	castaway@0.2.4
	cbc@0.1.2
	cbindgen@0.29.4
	cc@1.4.4
	cfg-if@1.0.4
	cfg_aliases@0.2.2
	chacha20@0.10.2
	chacha20@0.9.1
	chrono@0.4.45
	cipher@0.4.4
	clap@4.6.6
	clap_builder@4.6.6
	clap_complete@4.6.9
	clap_derive@4.6.4
	clap_lex@1.1.0
	cmake@0.1.58
	cobs@0.3.0
	color-eyre@0.6.5
	color-spantrace@0.3.0
	colorchoice@1.0.5
	combine@4.6.8
	comfy-table@8.0.0
	compact_str@0.9.1
	compression-codecs@0.4.38
	compression-core@0.4.32
	config@0.15.25
	console@0.16.4
	const-oid@0.9.6
	convert_case@0.10.0
	core-foundation-sys@0.8.7
	core-foundation@0.10.1
	core-foundation@0.9.4
	cpp_demangle@0.4.5
	cpufeatures@0.2.17
	cpufeatures@0.3.1
	cranelift-assembler-x64-meta@0.130.2
	cranelift-assembler-x64@0.130.2
	cranelift-bforest@0.130.2
	cranelift-bitset@0.130.2
	cranelift-codegen-meta@0.130.2
	cranelift-codegen-shared@0.130.2
	cranelift-codegen@0.130.2
	cranelift-control@0.130.2
	cranelift-entity@0.130.2
	cranelift-frontend@0.130.2
	cranelift-isle@0.130.2
	cranelift-native@0.130.2
	cranelift-srcgen@0.130.2
	crc32fast@1.5.1
	critical-section@1.2.0
	crossbeam-deque@0.8.7
	crossbeam-epoch@0.9.20
	crossbeam-utils@0.8.22
	crossterm@0.28.1
	crossterm@0.29.0
	crossterm_winapi@0.9.1
	crunchy@0.2.4
	crypto-bigint@0.5.5
	crypto-common@0.1.7
	crypto-common@0.2.2
	csscolorparser@0.6.2
	ctr@0.9.2
	darling@0.20.11
	darling@0.24.1
	darling_core@0.20.11
	darling_core@0.24.1
	darling_macro@0.20.11
	darling_macro@0.24.1
	data-encoding@2.11.1
	debugid@0.8.0
	deltae@0.3.2
	der-parser@10.0.0
	der-parser@9.0.0
	der@0.7.10
	deranged@0.5.8
	derive_arbitrary@1.4.2
	derive_builder@0.20.2
	derive_builder_core@0.20.2
	derive_builder_macro@0.20.2
	derive_deref@1.1.1
	derive_more-impl@2.1.1
	derive_more@2.1.1
	devd-rs@0.3.6
	dialoguer@0.12.0
	diff@0.1.13
	difflib@0.4.0
	digest@0.10.7
	digest@0.11.3
	directories-next@2.0.0
	dirs-sys-next@0.1.2
	dirs-sys@0.5.0
	dirs@7.0.0
	displaydoc@0.2.7
	document-features@0.2.12
	dunce@1.0.5
	dyn-clone@1.0.20
	ecdsa@0.16.9
	edit@0.1.5
	either@1.18.0
	elliptic-curve@0.13.8
	email_address@0.2.9
	embedded-io@0.4.0
	embedded-io@0.6.1
	encode_unicode@1.0.0
	encoding_rs@0.8.35
	equivalent@1.0.2
	errno@0.3.14
	euclid@0.22.14
	event-listener-strategy@0.5.4
	event-listener@5.4.2
	extism-convert-macros@1.30.0
	extism-convert@1.30.0
	extism-manifest@1.30.0
	extism@1.30.0
	eyre@0.6.14
	fancy-regex@0.11.0
	fancy-regex@0.19.0
	fastrand@2.5.0
	fd-lock@4.0.4
	ff@0.13.1
	filedescriptor@0.8.3
	find-msvc-tools@0.1.11
	finl_unicode@1.4.0
	fixedbitset@0.4.2
	flate2@1.1.10
	fluent-uri@0.4.1
	fnv@1.0.7
	foldhash@0.2.0
	foreign-types-shared@0.1.1
	foreign-types@0.3.2
	form_urlencoded@1.2.2
	fraction@0.17.0
	fs-set-times@0.20.3
	fs_extra@1.3.0
	futures-channel@0.3.34
	futures-core@0.3.34
	futures-executor@0.3.34
	futures-io@0.3.34
	futures-macro@0.3.34
	futures-sink@0.3.34
	futures-task@0.3.34
	futures-timer@3.0.4
	futures-util@0.3.34
	futures@0.3.34
	fuzzy-matcher@0.3.7
	fxprof-processed-profile@0.8.1
	generic-array@0.14.7
	getrandom@0.2.17
	getrandom@0.3.4
	getrandom@0.4.3
	ghash@0.5.1
	gimli@0.32.3
	gimli@0.33.0
	glob@0.3.4
	group@0.13.0
	h2@0.4.19
	half@1.8.3
	half@2.7.1
	hashbrown@0.16.1
	hashbrown@0.17.1
	hashlink@0.11.1
	headers-core@0.3.0
	headers@0.4.1
	heck@0.5.0
	hermit-abi@0.5.3
	hex@0.4.3
	hmac@0.12.1
	home@0.5.12
	http-body-util@0.1.5
	http-body@1.1.0
	http@1.5.0
	httparse@1.10.1
	httpdate@1.0.3
	httpmock@0.8.3
	hybrid-array@0.4.14
	hyper-rustls@0.27.9
	hyper-util@0.1.20
	hyper@1.11.1
	iana-time-zone-haiku@0.1.2
	iana-time-zone@0.1.65
	icu_collections@2.3.0
	icu_locale_core@2.3.0
	icu_normalizer@2.3.0
	icu_normalizer_data@2.3.0
	icu_properties@2.3.0
	icu_properties_data@2.3.0
	icu_provider@2.3.1
	id-arena@2.3.0
	ident_case@1.0.1
	idna@1.1.0
	idna_adapter@1.2.2
	im-rc@15.1.0
	indenter@0.3.4
	indexmap@2.14.1
	indicatif@0.18.6
	indoc@2.0.7
	inout@0.1.4
	instability@0.3.13
	inventory@0.3.24
	io-extras@0.18.4
	io-lifetimes@2.0.4
	ipnet@2.12.1
	is-docker@0.2.0
	is-terminal@0.4.17
	is-wsl@0.4.0
	is_ci@1.2.0
	is_executable@1.0.6
	is_terminal_polyfill@1.70.2
	itertools@0.14.0
	itertools@0.15.0
	itoa@1.0.18
	ittapi-sys@0.4.0
	ittapi@0.4.0
	jni-macros@0.22.4
	jni-sys-macros@0.4.1
	jni-sys@0.4.1
	jni@0.22.4
	jobserver@0.1.35
	js-sys@0.3.104
	json-patch@4.2.0
	jsonptr@0.7.1
	jsonschema-regex@0.53.0
	jsonschema-value@0.53.0
	jsonschema@0.53.0
	kasuari@0.4.12
	lab@0.11.0
	lazy_static@1.5.0
	leb128@0.2.7
	leb128fmt@0.1.0
	libc@0.2.189
	libfuzzer-sys@0.4.13
	libm@0.2.16
	libredox@0.1.21
	libudev-sys@0.1.4
	libudev@0.2.0
	line-clipping@0.3.8
	linux-raw-sys@0.12.1
	linux-raw-sys@0.4.15
	litemap@0.8.3
	litrs@1.0.0
	lock_api@0.4.14
	log@0.4.34
	lru-slab@0.1.2
	lru@0.18.3
	mac_address@1.1.8
	mach2@0.4.3
	manyhow-macros@0.11.4
	manyhow@0.11.4
	matchers@0.2.0
	maybe-owned@0.3.4
	md5@0.8.1
	mdbook-core@0.5.4
	mdbook-preprocessor@0.5.4
	memchr@2.8.3
	memfd@0.6.5
	memmem@0.1.1
	memoffset@0.8.0
	memoffset@0.9.1
	micromap@0.3.0
	mime@0.3.17
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	miniz_oxide@0.9.1
	mio@1.2.2
	nix@0.29.0
	nom@7.1.3
	nu-ansi-term@0.50.3
	num-bigint-dig@0.8.6
	num-bigint@0.4.8
	num-cmp@0.1.0
	num-complex@0.4.6
	num-conv@0.2.2
	num-derive@0.4.2
	num-integer@0.1.47
	num-iter@0.1.46
	num-rational@0.4.2
	num-traits@0.2.19
	num@0.4.3
	num_threads@0.1.7
	numtoa@0.2.4
	object@0.37.3
	object@0.38.1
	oid-registry@0.7.1
	oid-registry@0.8.1
	once_cell@1.21.4
	once_cell_polyfill@1.70.2
	opaque-debug@0.3.1
	open@5.4.2
	openssl-macros@0.1.1
	openssl-probe@0.2.1
	openssl-sys@0.9.117
	openssl@0.10.81
	option-ext@0.2.0
	ordered-float@4.6.0
	outref@0.5.2
	owo-colors@4.4.0
	p256@0.13.2
	p384@0.13.1
	p521@0.13.3
	palette@0.7.7
	palette_derive@0.7.7
	palette_math@0.7.7
	parking@2.2.1
	parking_lot@0.12.5
	parking_lot_core@0.9.12
	pastey@0.1.1
	path-tree@0.8.3
	pathdiff@0.2.3
	pbkdf2@0.12.2
	pem-rfc7468@0.7.0
	pem@4.0.0
	percent-encoding@2.3.2
	pest@2.9.0
	pest_derive@2.9.0
	pest_generator@2.9.0
	pest_meta@2.9.0
	petgraph@0.6.5
	phf@0.11.3
	phf_codegen@0.11.3
	phf_generator@0.11.3
	phf_macros@0.11.3
	phf_shared@0.11.3
	pin-project-lite@0.2.17
	pkcs1@0.7.5
	pkcs5@0.7.1
	pkcs8@0.10.2
	pkg-config@0.3.34
	poly1305@0.8.0
	polyval@0.6.2
	portable-atomic@1.15.0
	postcard@1.1.3
	potential_utf@0.1.6
	powerfmt@0.2.0
	ppv-lite86@0.2.21
	predicates-core@1.0.10
	predicates-tree@1.0.13
	predicates@3.1.4
	pretty_assertions@1.4.1
	primeorder@0.13.6
	proc-macro-crate@3.5.0
	proc-macro-utils@0.10.0
	proc-macro2@1.0.107
	prost-derive@0.14.4
	prost@0.14.4
	pulley-interpreter@43.0.2
	pulley-macros@43.0.2
	quinn-proto@0.11.17
	quinn-udp@0.5.15
	quinn@0.11.11
	quote@1.0.47
	r-efi@5.3.0
	r-efi@6.0.0
	rand@0.10.2
	rand@0.8.8
	rand@0.9.5
	rand_chacha@0.3.1
	rand_chacha@0.9.0
	rand_core@0.10.1
	rand_core@0.6.4
	rand_core@0.9.5
	rand_pcg@0.10.2
	rand_xoshiro@0.6.0
	ratatui-core@0.1.2
	ratatui-crossterm@0.1.2
	ratatui-macros@0.7.2
	ratatui-termina@0.1.0
	ratatui-termion@0.1.2
	ratatui-termwiz@0.1.2
	ratatui-widgets@0.3.2
	ratatui@0.30.2
	rayon-core@1.13.0
	rayon@1.12.0
	rcgen@0.14.10
	redox_syscall@0.5.18
	redox_users@0.4.6
	redox_users@0.5.2
	ref-cast-impl@1.0.27
	ref-cast@1.0.27
	referencing@0.53.0
	regalloc2@0.15.2
	regex-automata@0.4.18
	regex-syntax@0.8.11
	regex@1.13.1
	reqwest@0.13.4
	reserve-port@2.5.0
	rfc6979@0.4.0
	ring@0.17.14
	rmp-serde@1.3.1
	rmp@0.8.15
	rpassword@5.0.1
	rsa@0.9.10
	runloop@0.1.0
	rustc-demangle@0.1.28
	rustc-hash@2.1.3
	rustc_version@0.4.1
	rusticata-macros@4.1.0
	rustix-linux-procfs@0.1.1
	rustix@0.38.44
	rustix@1.1.4
	rustls-native-certs@0.8.4
	rustls-pki-types@1.15.1
	rustls-platform-verifier-android@0.1.1
	rustls-platform-verifier@0.7.0
	rustls-webpki@0.103.15
	rustls@0.23.43
	rustversion@1.0.23
	ryu@1.0.23
	salsa20@0.10.2
	same-file@1.0.6
	schannel@0.1.29
	schemars@1.2.2
	schemars_derive@1.2.2
	scopeguard@1.2.0
	scrypt@0.11.0
	sec1@0.7.3
	secrecy@0.10.3
	security-framework-sys@2.17.0
	security-framework@3.7.0
	semver@1.0.28
	serde@1.0.229
	serde_bytes@0.11.19
	serde_cbor@0.11.2
	serde_cbor_2@0.13.0
	serde_core@1.0.229
	serde_derive@1.0.229
	serde_derive_internals@0.30.0
	serde_json@1.0.151
	serde_path_to_error@0.1.20
	serde_regex@1.2.0
	serde_spanned@1.1.1
	serde_urlencoded@0.7.1
	serde_yaml@0.9.34+deprecated
	sha1@0.10.7
	sha2@0.10.9
	sha2@0.11.0
	sharded-slab@0.1.7
	shell-words@1.1.1
	shlex@2.0.1
	signal-hook-mio@0.2.5
	signal-hook-registry@1.4.8
	signal-hook@0.3.18
	signal-hook@0.4.4
	signature@2.2.0
	simd-adler32@0.3.10
	simd_cesu8@1.2.0
	simdutf8@0.1.5
	similar@2.7.0
	siphasher@1.0.3
	sized-chunks@0.6.5
	slab@0.4.12
	smallvec@1.15.2
	socket2@0.6.5
	spin@0.9.9
	spki@0.7.3
	ssh-cipher@0.2.0
	ssh-encoding@0.2.0
	ssh-key@0.6.7
	stable_deref_trait@1.2.1
	static_assertions@1.1.0
	stringmetrics@2.2.2
	strip-ansi-escapes@0.2.1
	strsim@0.11.1
	structable@0.3.5
	structable_derive@0.3.5
	strum@0.28.0
	strum_macros@0.28.0
	subtle@2.6.1
	supports-color@2.1.0
	supports-color@3.0.2
	syn@1.0.109
	syn@2.0.119
	syn@3.0.4
	sync_wrapper@1.0.2
	synstructure@0.13.2
	system-configuration-sys@0.6.0
	system-configuration@0.7.0
	system-interface@0.27.3
	tabwriter@1.4.1
	target-lexicon@0.13.5
	tempfile@3.27.0
	termcolor@1.4.1
	termina@0.3.3
	terminal_size@0.4.4
	terminfo@0.9.0
	termion@4.0.6
	termios@0.3.3
	termtree@0.5.1
	termwiz@0.23.3
	thiserror-impl@1.0.69
	thiserror-impl@2.0.20
	thiserror@1.0.69
	thiserror@2.0.20
	thread_local@1.1.10
	time-core@0.1.9
	time-macros@0.2.32
	time@0.3.55
	tinystr@0.8.4
	tinyvec@1.12.0
	tinyvec_macros@0.1.1
	tokio-macros@2.7.2
	tokio-rustls@0.26.4
	tokio-stream@0.1.19
	tokio-util@0.7.19
	tokio@1.53.1
	toml@0.9.12+spec-1.1.0
	toml@1.1.4+spec-1.1.0
	toml_datetime@0.7.5+spec-1.1.0
	toml_datetime@1.1.1+spec-1.1.0
	toml_edit@0.25.13+spec-1.1.0
	toml_parser@1.1.3+spec-1.1.0
	toml_writer@1.1.2+spec-1.1.0
	tower-http@0.6.11
	tower-layer@0.3.3
	tower-service@0.3.3
	tower@0.5.3
	tracing-attributes@0.1.31
	tracing-core@0.1.36
	tracing-error@0.2.1
	tracing-log@0.2.0
	tracing-subscriber@0.3.23
	tracing-test-macro@0.2.6
	tracing-test@0.2.6
	tracing@0.1.44
	try-lock@0.2.5
	typenum@1.20.1
	ucd-trie@0.1.7
	unicase@2.9.0
	unicode-general-category@1.1.0
	unicode-ident@1.0.24
	unicode-normalization@0.1.25
	unicode-segmentation@1.13.3
	unicode-truncate@2.0.1
	unicode-width@0.2.2
	unicode-xid@0.2.6
	unit-prefix@0.5.2
	universal-hash@0.5.1
	unsafe-libyaml@0.2.11
	untrusted@0.9.0
	ureq-proto@0.6.1
	ureq@3.4.0
	url@2.5.8
	utf8-zero@0.8.1
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid-simd@0.8.0
	uuid@1.26.0
	valuable@0.1.1
	vcpkg@0.2.15
	version_check@0.9.5
	vsimd@0.8.0
	vte@0.14.1
	vtparse@0.6.2
	wait-timeout@0.2.1
	walkdir@2.5.0
	want@0.3.1
	wasi-common@43.0.2
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.4+wasi-0.2.12
	wasm-bindgen-futures@0.4.77
	wasm-bindgen-macro-support@0.2.127
	wasm-bindgen-macro@0.2.127
	wasm-bindgen-shared@0.2.127
	wasm-bindgen@0.2.127
	wasm-compose@0.245.1
	wasm-encoder@0.245.1
	wasm-encoder@0.258.0
	wasm-streams@0.5.0
	wasmparser@0.245.1
	wasmparser@0.258.0
	wasmprinter@0.245.1
	wasmtime-environ@43.0.2
	wasmtime-internal-cache@43.0.2
	wasmtime-internal-component-macro@43.0.2
	wasmtime-internal-component-util@43.0.2
	wasmtime-internal-core@43.0.2
	wasmtime-internal-cranelift@43.0.2
	wasmtime-internal-fiber@43.0.2
	wasmtime-internal-jit-debug@43.0.2
	wasmtime-internal-jit-icache-coherence@43.0.2
	wasmtime-internal-unwinder@43.0.2
	wasmtime-internal-versioned-export-macros@43.0.2
	wasmtime-internal-winch@43.0.2
	wasmtime-internal-wit-bindgen@43.0.2
	wasmtime@43.0.2
	wast@258.0.0
	wast@35.0.2
	wat@1.258.0
	web-sys@0.3.104
	web-time@1.1.0
	webauthn-attestation-ca@0.5.5
	webauthn-authenticator-rs@0.5.5
	webauthn-rs-core@0.5.5
	webauthn-rs-proto@0.5.5
	webpki-root-certs@1.0.9
	webpki-roots@1.0.9
	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@4.4.2
	wiggle-generate@43.0.2
	wiggle-macro@43.0.2
	wiggle@43.0.2
	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
	winch-codegen@43.0.2
	windows-core@0.62.2
	windows-implement@0.60.2
	windows-interface@0.59.3
	windows-link@0.2.1
	windows-registry@0.6.1
	windows-result@0.4.1
	windows-strings@0.5.1
	windows-sys@0.52.0
	windows-sys@0.59.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
	winnow@1.0.4
	winx@0.36.4
	wit-bindgen@0.57.1
	wit-parser@0.245.1
	witx@0.9.1
	writeable@0.6.4
	x509-parser@0.16.0
	x509-parser@0.18.1
	yaml-rust2@0.11.1
	yansi@1.0.1
	yasna@0.6.0
	yoke-derive@0.8.2
	yoke@0.8.3
	zerocopy-derive@0.8.56
	zerocopy@0.8.56
	zerofrom-derive@0.1.7
	zerofrom@0.1.8
	zeroize@1.9.0
	zerotrie@0.2.5
	zerovec-derive@0.11.6
	zerovec@0.11.8
	zlib-rs@0.6.7
	zmij@1.0.23
	zstd-safe@7.2.4
	zstd-sys@2.0.16+zstd.1.5.7
	zstd@0.13.3
"

inherit cargo shell-completion

RUST_MIN_VER="1.91.0"

DESCRIPTION="OpenStack client rewritten in Rust"
HOMEPAGE="https://github.com/gtema/openstack"
SRC_URI="
	https://github.com/gtema/openstack/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

S="${WORKDIR}/openstack-${PV}/"

LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD CC0-1.0
	CDLA-Permissive-2.0 ISC MIT MIT-0 MPL-2.0 MPL-2.0 UoI-NCSA
	Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
"

SLOT="0"
KEYWORDS="~amd64 ~arm64"

DEPEND="dev-libs/openssl"

src_compile() {
	# Required for pkg-config crate:
	#   https://wiki.gentoo.org/wiki/Writing_Rust_ebuilds#pkg-config_crate
	export PKG_CONFIG_ALLOW_CROSS=1

	# Un-bundle OpenSSL:
	#   https://wiki.gentoo.org/wiki/Writing_Rust_ebuilds#Common_-sys_crates
	export OPENSSL_NO_VENDOR=1

	cargo_src_compile --package openstack_cli

	"${S}"/target/release/osc completion bash > osc || die
	"${S}"/target/release/osc completion zsh > _osc || die
	"${S}"/target/release/osc completion fish > osc.fish || die
}

src_install(){
	cargo_src_install --path ./openstack_cli

	dobashcomp osc
	dozshcomp _osc
	dofishcomp osc.fish
}

src_test(){
	# Reported upstream:
	#   https://github.com/gtema/openstack/issues/1984
	local CARGO_SKIP_TESTS=(
		test_scoped_login_does_not_trigger_redundant_reauth
		test_version_discovery_404_fails
	)
	cargo_src_test
}