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

# (mostly) auto-generated by cargo-ebuild 0.5.4-r1

EAPI=8

CRATES="
	aho-corasick@1.0.4
	anstream@0.3.2
	anstream@0.5.0
	anstyle@1.0.3
	anstyle-parse@0.2.1
	anstyle-query@1.0.0
	anstyle-wincon@1.0.2
	anstyle-wincon@2.1.0
	anyhow@1.0.75
	assert_cmd@2.0.12
	assert_fs@1.0.13
	atty@0.2.14
	autocfg@1.1.0
	base64@0.21.3
	bitflags@1.3.2
	bitflags@2.4.0
	bstr@1.6.0
	bumpalo@3.13.0
	byteorder@1.4.3
	camino@1.1.6
	cargo-platform@0.1.3
	cargo_metadata@0.15.4
	cc@1.0.83
	cfg-if@1.0.0
	clap@4.4.2
	clap-cargo@0.12.0
	clap_builder@4.4.2
	clap_derive@4.4.2
	clap_lex@0.5.1
	colorchoice@1.0.0
	concolor-control@0.0.7
	concolor-query@0.0.4
	content_inspector@0.2.4
	core-foundation@0.9.3
	core-foundation-sys@0.8.4
	crates-index@0.19.13
	crossbeam-channel@0.5.8
	crossbeam-deque@0.8.3
	crossbeam-epoch@0.9.15
	crossbeam-utils@0.8.16
	difflib@0.4.0
	doc-comment@0.3.3
	dunce@1.0.4
	either@1.9.0
	env_proxy@0.4.1
	equivalent@1.0.1
	errno@0.3.2
	errno-dragonfly@0.1.2
	fastrand@2.0.0
	filetime@0.2.22
	float-cmp@0.9.0
	fnv@1.0.7
	foreign-types@0.3.2
	foreign-types-shared@0.1.1
	form_urlencoded@1.2.0
	git2@0.17.2
	glob@0.3.1
	globset@0.4.13
	globwalk@0.8.1
	hashbrown@0.12.3
	hashbrown@0.14.0
	heck@0.4.1
	hermit-abi@0.1.19
	hermit-abi@0.3.2
	hex@0.4.3
	home@0.5.5
	humantime@2.1.0
	humantime-serde@1.1.1
	idna@0.4.0
	ignore@0.4.20
	indexmap@1.9.3
	indexmap@2.0.0
	io-lifetimes@1.0.11
	is-terminal@0.4.9
	itertools@0.10.5
	itoa@1.0.9
	jobserver@0.1.26
	js-sys@0.3.64
	lazy_static@1.4.0
	libc@0.2.147
	libgit2-sys@0.15.2+1.6.4
	libssh2-sys@0.3.0
	libz-sys@1.1.12
	linux-raw-sys@0.3.8
	linux-raw-sys@0.4.5
	log@0.4.20
	memchr@2.5.0
	memoffset@0.9.0
	native-tls@0.2.11
	normalize-line-endings@0.3.0
	num-traits@0.2.16
	num_cpus@1.16.0
	once_cell@1.18.0
	openssl@0.10.56
	openssl-macros@0.1.1
	openssl-probe@0.1.5
	openssl-src@111.27.0+1.1.1v
	openssl-sys@0.9.91
	os_pipe@1.1.4
	pathdiff@0.2.1
	percent-encoding@2.3.0
	pkg-config@0.3.27
	predicates@3.0.3
	predicates-core@1.0.6
	predicates-tree@1.0.9
	proc-macro2@1.0.66
	quote@1.0.33
	rayon@1.7.0
	rayon-core@1.11.0
	redox_syscall@0.3.5
	regex@1.9.4
	regex-automata@0.3.7
	regex-syntax@0.7.5
	ring@0.16.20
	rustc-hash@1.1.0
	rustix@0.37.23
	rustix@0.38.9
	rustls@0.21.6
	rustls-webpki@0.100.2
	rustls-webpki@0.101.4
	ryu@1.0.15
	same-file@1.0.6
	schannel@0.1.22
	scopeguard@1.2.0
	sct@0.7.0
	security-framework@2.9.2
	security-framework-sys@2.9.1
	semver@1.0.18
	serde@1.0.188
	serde_derive@1.0.188
	serde_json@1.0.105
	serde_spanned@0.6.3
	shlex@1.1.0
	similar@2.2.1
	smol_str@0.2.0
	snapbox@0.4.12
	snapbox-macros@0.3.5
	socks@0.3.4
	spin@0.5.2
	strsim@0.10.0
	subprocess@0.2.9
	syn@2.0.29
	tempfile@3.8.0
	termcolor@1.2.0
	terminal_size@0.2.6
	termtree@0.4.1
	thiserror@1.0.47
	thiserror-impl@1.0.47
	thread_local@1.1.7
	tinyvec@1.6.0
	tinyvec_macros@0.1.1
	toml@0.7.6
	toml_datetime@0.6.3
	toml_edit@0.19.14
	trycmd@0.14.17
	unicode-bidi@0.3.13
	unicode-ident@1.0.11
	unicode-normalization@0.1.22
	untrusted@0.7.1
	ureq@2.7.1
	url@2.4.0
	utf8parse@0.2.1
	vcpkg@0.2.15
	wait-timeout@0.2.0
	walkdir@2.3.3
	wasm-bindgen@0.2.87
	wasm-bindgen-backend@0.2.87
	wasm-bindgen-macro@0.2.87
	wasm-bindgen-macro-support@0.2.87
	wasm-bindgen-shared@0.2.87
	web-sys@0.3.64
	webpki-roots@0.23.1
	winapi@0.3.9
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.5
	winapi-x86_64-pc-windows-gnu@0.4.0
	windows-sys@0.48.0
	windows-targets@0.48.5
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_msvc@0.48.5
	windows_i686_gnu@0.48.5
	windows_i686_msvc@0.48.5
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_msvc@0.48.5
	winnow@0.5.15
"

inherit cargo

DESCRIPTION="Utility for managing cargo dependencies from the command line"
HOMEPAGE="https://github.com/killercup/cargo-edit"
SRC_URI="
	https://github.com/killercup/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"

LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions Boost-1.0 CC0-1.0 ISC MIT MIT-0 MPL-2.0 Unicode-DFS-2016 Unlicense ZLIB"
SLOT="0"
KEYWORDS="~amd64"

DOCS=(
	"CHANGELOG.md"
	"README.md"
)

src_prepare() {
	default
	# drop live test deps
	sed -i '/^cargo-test-.*\.git/d' Cargo.toml || die
}

src_install() {
	cargo_src_install
	einstalldocs
}