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

# shellcheck disable=SC2086

EAPI=8

CRATES="
aho-corasick-0.7.14
ansi_term-0.11.0
anyhow-1.0.33
arrayvec-0.5.2
async-trait-0.1.41
atty-0.2.14
autocfg-1.0.1
base64-0.13.0
bitflags-1.2.1
block-buffer-0.7.3
block-buffer-0.9.0
block-padding-0.1.5
bstr-0.2.14
byte-tools-0.3.1
byteorder-1.3.4
bytes-1.0.1
cc-1.0.71
cfg-if-0.1.10
cfg-if-1.0.0
chrono-0.4.19
chrono-tz-0.6.0
chrono-tz-build-0.0.2
clap-2.33.3
cloudabi-0.1.0
config-0.10.1
console-0.13.0
core-foundation-0.9.2
core-foundation-sys-0.8.3
cpufeatures-0.1.4
crossbeam-utils-0.7.2
crypto-mac-0.10.0
csv-1.1.3
csv-core-0.1.10
deunicode-0.4.3
digest-0.8.1
digest-0.9.0
dtoa-0.4.6
encode_unicode-0.3.6
fake-2.4.1
fake-simd-0.1.2
fallible-iterator-0.2.0
fnv-1.0.7
foreign-types-0.3.2
foreign-types-shared-0.1.1
form_urlencoded-1.0.0
futures-0.3.17
futures-channel-0.3.17
futures-core-0.3.17
futures-executor-0.3.17
futures-io-0.3.17
futures-macro-0.3.17
futures-sink-0.3.17
futures-task-0.3.17
futures-util-0.3.17
generic-array-0.12.4
generic-array-0.14.4
getrandom-0.2.2
globset-0.4.6
globwalk-0.8.1
heck-0.3.1
hermit-abi-0.1.17
hmac-0.10.1
humansize-1.1.0
idna-0.2.0
ignore-0.4.16
indicatif-0.15.0
instant-0.1.8
itoa-0.4.6
lazy_static-1.4.0
lexical-core-0.7.5
libc-0.2.105
linked-hash-map-0.3.0
linked-hash-map-0.5.3
lock_api-0.4.1
log-0.4.11
maplit-1.0.2
matches-0.1.8
md-5-0.9.1
memchr-2.3.3
mio-0.7.11
miow-0.3.7
native-tls-0.2.8
nom-5.1.2
ntapi-0.3.6
num-integer-0.1.44
num-traits-0.1.43
num-traits-0.2.12
number_prefix-0.3.0
once_cell-1.5.2
opaque-debug-0.2.3
opaque-debug-0.3.0
openssl-0.10.36
openssl-probe-0.1.4
openssl-sys-0.9.67
parking_lot-0.11.0
parking_lot_core-0.8.0
parse-zoneinfo-0.3.0
percent-encoding-2.1.0
pest-2.1.3
pest_derive-2.1.0
pest_generator-2.1.3
pest_meta-2.1.3
phf-0.8.0
phf-0.10.0
phf_codegen-0.10.0
phf_generator-0.10.0
phf_shared-0.8.0
phf_shared-0.10.0
pin-project-lite-0.2.6
pin-utils-0.1.0
pkg-config-0.3.22
postgres-0.19.1
postgres-native-tls-0.5.0
postgres-protocol-0.6.1
postgres-types-0.2.1
ppv-lite86-0.2.9
proc-macro-error-1.0.4
proc-macro-error-attr-1.0.4
proc-macro-hack-0.5.19
proc-macro-nested-0.1.6
proc-macro2-1.0.29
quote-1.0.7
rand-0.8.4
rand_chacha-0.3.0
rand_core-0.6.2
rand_hc-0.3.0
redox_syscall-0.1.57
redox_syscall-0.2.10
regex-1.4.1
regex-automata-0.1.9
regex-syntax-0.6.20
remove_dir_all-0.5.3
rust-ini-0.13.0
ryu-1.0.5
same-file-1.0.6
schannel-0.1.19
scopeguard-1.1.0
security-framework-2.3.1
security-framework-sys-2.4.2
serde-0.8.23
serde-1.0.117
serde-hjson-0.9.1
serde_derive-1.0.117
serde_json-1.0.59
serde_test-0.8.23
serde_yaml-0.8.14
sha-1-0.8.2
sha2-0.9.5
siphasher-0.3.3
slab-0.4.2
slug-0.1.4
smallvec-1.6.1
socket2-0.4.0
solvent-0.8.2
static_assertions-1.1.0
stringprep-0.1.2
strsim-0.8.0
structopt-0.3.20
structopt-derive-0.4.13
subtle-2.3.0
syn-1.0.76
tempfile-3.2.0
tera-1.15.0
terminal_size-0.1.13
textwrap-0.11.0
thiserror-1.0.22
thiserror-impl-1.0.22
thread_local-1.0.1
time-0.1.44
tinyvec-0.3.4
tokio-1.11.0
tokio-native-tls-0.3.0
tokio-postgres-0.7.2
tokio-util-0.6.6
toml-0.5.7
typenum-1.12.0
ucd-trie-0.1.3
uncased-0.9.6
unic-char-property-0.9.0
unic-char-range-0.9.0
unic-common-0.9.0
unic-segment-0.9.0
unic-ucd-segment-0.9.0
unic-ucd-version-0.9.0
unicode-bidi-0.3.4
unicode-normalization-0.1.13
unicode-segmentation-1.7.0
unicode-width-0.1.8
unicode-xid-0.2.1
url-2.2.0
vcpkg-0.2.15
vec_map-0.8.2
version_check-0.9.2
walkdir-2.3.1
wasi-0.10.0+wasi-snapshot-preview1
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
yaml-rust-0.4.4
"

inherit cargo

DESCRIPTION="Powerful database anonymizer with flexible rules"
HOMEPAGE="https://github.com/datanymizer/datanymizer"
SRC_URI="https://github.com/datanymizer/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
	$(cargo_crate_uris ${CRATES})"

LICENSE="Apache-2.0 BSD BSD-2 Boost-1.0 MIT ZLIB"
KEYWORDS="~amd64 ~x86"
SLOT="0"

S="${WORKDIR}/${P}/cli/pg_datanymizer"

QA_FLAGS_IGNORED="usr/bin/pg_datanymizer"