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

# Autogenerated by pycargoebuild 0.15.2

EAPI=8

# 1.0.0_beta15 -> 1.0.0-beta.15
MY_PIJUL_PV="$(ver_rs 3-4 - 4-5 .)"

CRATES="
	addr2line@0.25.1
	adler2@2.0.1
	adler32@1.2.0
	aes@0.7.5
	aho-corasick@1.1.4
	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.102
	arrayref@0.3.9
	arrayvec@0.7.6
	atomic-waker@1.1.2
	atomic@0.6.1
	autocfg@1.5.0
	backtrace@0.3.76
	base64@0.22.1
	base64ct@1.8.3
	bcrypt-pbkdf@0.10.0
	bincode@1.3.3
	bit-vec@0.6.3
	bitflags@1.3.2
	bitflags@2.11.1
	blake3@1.8.5
	block-buffer@0.10.4
	block-buffer@0.9.0
	block-modes@0.8.1
	block-padding@0.2.1
	block2@0.6.2
	blowfish@0.9.1
	bstr@1.12.1
	bumpalo@3.20.2
	bytemuck@1.25.0
	byteorder@1.5.0
	bytes@1.11.1
	canonical-path@2.0.2
	cc@1.2.61
	cfg-if@1.0.4
	cfg_aliases@0.2.1
	chacha20@0.10.0
	chardetng@0.1.17
	cipher@0.3.0
	cipher@0.4.4
	clap@4.6.1
	clap_builder@4.6.0
	clap_complete@4.6.2
	clap_derive@4.6.1
	clap_lex@1.1.0
	clap_mangen@0.2.33
	colorchoice@1.0.5
	conpty@0.5.1
	console@0.15.11
	constant_time_eq@0.4.2
	core-foundation-sys@0.8.7
	core-foundation@0.10.1
	core-foundation@0.9.4
	cpufeatures@0.2.17
	cpufeatures@0.3.0
	crc32fast@1.5.0
	crossbeam-deque@0.8.6
	crossbeam-epoch@0.9.18
	crossbeam-utils@0.8.21
	crypto-common@0.1.7
	crypto-mac@0.11.1
	cryptovec@0.7.1
	ctr@0.8.0
	ctrlc@3.5.2
	curve25519-dalek-derive@0.1.1
	curve25519-dalek@4.1.3
	data-encoding@2.11.0
	dialoguer@0.10.4
	diffs@0.5.1
	digest@0.10.7
	digest@0.9.0
	dirs-next@2.0.0
	dirs-sys-next@0.1.2
	dirs-sys@0.3.7
	dirs@3.0.2
	dispatch2@0.3.1
	displaydoc@0.2.5
	edit@0.1.5
	either@1.15.0
	encode_unicode@1.0.0
	encoding_rs@0.8.35
	env_filter@1.0.1
	env_logger@0.11.10
	equivalent@1.0.2
	errno-dragonfly@0.1.2
	errno@0.2.8
	errno@0.3.14
	expectrl@0.7.1
	fastrand@2.4.1
	fiat-crypto@0.2.9
	figment@0.10.19
	filetime@0.2.27
	find-msvc-tools@0.1.9
	flate2@1.1.9
	fnv@1.0.7
	foldhash@0.1.5
	foreign-types-shared@0.1.1
	foreign-types@0.3.2
	form_urlencoded@1.2.2
	fs4@0.6.6
	futures-channel@0.3.32
	futures-core@0.3.32
	futures-executor@0.3.32
	futures-io@0.3.32
	futures-macro@0.3.32
	futures-sink@0.3.32
	futures-task@0.3.32
	futures-util@0.3.32
	futures@0.3.32
	generic-array@0.14.7
	getrandom@0.2.17
	getrandom@0.3.4
	getrandom@0.4.2
	gimli@0.32.3
	git2@0.21.0
	globset@0.4.18
	h2@0.4.15
	hashbrown@0.15.5
	hashbrown@0.17.0
	heck@0.5.0
	hermit-abi@0.5.2
	hmac@0.11.0
	home@0.5.12
	http-body-util@0.1.3
	http-body@1.0.1
	http@1.4.2
	httparse@1.10.1
	httpdate@1.0.3
	human-panic@2.0.8
	hyper-tls@0.6.0
	hyper-util@0.1.20
	hyper@1.10.1
	icu_collections@2.2.0
	icu_locale_core@2.2.0
	icu_normalizer@2.2.0
	icu_normalizer_data@2.2.0
	icu_properties@2.2.0
	icu_properties_data@2.2.0
	icu_provider@2.2.0
	id-arena@2.3.0
	idna@1.1.0
	idna_adapter@1.2.1
	ignore@0.4.25
	imara-diff@0.1.8
	indexmap@2.14.0
	indicatif@0.17.11
	inout@0.1.4
	instant@0.1.13
	ipnet@2.12.0
	is-docker@0.2.0
	is-wsl@0.4.0
	is_terminal_polyfill@1.70.2
	itoa@1.0.18
	jiff-static@0.2.24
	jiff-tzdb-platform@0.1.3
	jiff-tzdb@0.1.6
	jiff@0.2.24
	jobserver@0.1.34
	js-sys@0.3.95
	lazy_static@0.2.11
	lazy_static@1.5.0
	leb128fmt@0.1.0
	libc@0.2.186
	libgit2-sys@0.18.5+1.9.4
	libm@0.2.16
	libredox@0.1.16
	libsodium-sys@0.2.7
	libz-sys@1.1.28
	linked-hash-map@0.5.6
	linux-raw-sys@0.12.1
	linux-raw-sys@0.4.15
	litemap@0.8.2
	lock_api@0.4.14
	log@0.4.29
	lru-cache@0.1.2
	md5@0.7.0
	memchr@2.8.0
	memmap2@0.9.10
	memoffset@0.7.1
	mime@0.3.17
	minimal-lexical@0.2.1
	miniz_oxide@0.8.9
	mio@1.2.0
	native-tls@0.2.18
	nix@0.26.4
	nix@0.31.2
	nom@7.1.3
	ntapi@0.4.3
	num-bigint@0.4.6
	num-integer@0.1.46
	num-traits@0.2.19
	num_cpus@1.17.0
	number_prefix@0.4.0
	objc2-core-foundation@0.3.2
	objc2-encode@4.1.0
	objc2-io-kit@0.3.2
	objc2@0.6.4
	object@0.37.3
	once_cell@1.21.4
	once_cell_polyfill@1.70.2
	opaque-debug@0.3.1
	open@5.3.4
	openssl-macros@0.1.1
	openssl-probe@0.2.1
	openssl-sys@0.9.114
	openssl@0.10.78
	pager@0.16.1
	parking_lot@0.11.2
	parking_lot@0.12.5
	parking_lot_core@0.8.6
	parking_lot_core@0.9.12
	password-hash@0.2.3
	path-slash@0.2.1
	pathdiff@0.2.3
	pbkdf2@0.12.2
	pbkdf2@0.8.0
	percent-encoding@2.3.2
	pijul@1.0.0-beta.15
	pijul-config@1.0.0-beta.15
	pijul-core@1.0.0-beta.15
	pijul-identity@1.0.0-beta.15
	pijul-remote@1.0.0-beta.15
	pijul-repository@1.0.0-beta.15
	pijul-interaction@1.0.0-beta.15
	pijul-macros@1.0.0-beta.13
	pin-project-lite@0.2.17
	pin-utils@0.1.0
	pkg-config@0.3.33
	plain@0.2.3
	portable-atomic-util@0.2.7
	portable-atomic@1.13.1
	potential_utf@0.1.5
	ppv-lite86@0.2.21
	prettyplease@0.2.37
	proc-macro2@1.0.106
	ptree@0.5.2
	ptyprocess@0.4.1
	quickcheck@1.1.0
	quote@1.0.45
	r-efi@5.3.0
	r-efi@6.0.0
	rand@0.10.1
	rand@0.8.6
	rand@0.9.4
	rand_chacha@0.10.0
	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_distr@0.6.0
	redox_syscall@0.2.16
	redox_syscall@0.5.18
	redox_syscall@0.7.4
	redox_users@0.4.6
	regex-automata@0.4.14
	regex-syntax@0.8.10
	regex@1.12.3
	reqwest@0.12.4
	rlimit@0.10.2
	roff@1.1.1
	rustc-demangle@0.1.27
	rustc_version@0.4.1
	rustix@0.38.44
	rustix@1.1.4
	rustls-pemfile@2.2.0
	rustls-pki-types@1.14.1
	rustversion@1.0.22
	ryu@1.0.23
	same-file@1.0.6
	sanakirja-core@2.0.0-beta
	sanakirja@2.0.0-beta
	schannel@0.1.29
	scopeguard@1.2.0
	security-framework-sys@2.17.0
	security-framework@3.7.0
	semver@1.0.28
	serde@1.0.228
	serde_core@1.0.228
	serde_derive@1.0.228
	serde_json@1.0.149
	serde_spanned@0.6.9
	serde_spanned@1.1.1
	serde_urlencoded@0.7.1
	sha2@0.10.9
	sha2@0.9.9
	shell-words@1.1.1
	shlex@1.3.0
	signal-hook-registry@1.4.8
	simd-adler32@0.3.9
	slab@0.4.12
	smallvec@1.15.1
	socket2@0.6.3
	ssh-libsodium@0.4.0
	stable_deref_trait@1.2.1
	static_assertions@1.1.0
	strsim@0.11.1
	subtle@2.4.1
	syn@2.0.117
	sync_wrapper@0.1.2
	synstructure@0.13.2
	sysinfo@0.38.4
	system-configuration-sys@0.5.0
	system-configuration@0.5.1
	tar@0.4.45
	tempfile@3.27.0
	termcolor@1.4.1
	thiserror-impl@1.0.69
	thiserror-impl@2.0.18
	thiserror@1.0.69
	thiserror@2.0.18
	threadpool@1.8.1
	thrussh-config@0.6.0
	thrussh-keys@0.41.0
	thrussh@0.41.0
	tint@1.0.1
	tinystr@0.8.3
	tokio-macros@2.7.0
	tokio-native-tls@0.3.1
	tokio-stream@0.1.18
	tokio-util@0.7.18
	tokio@1.52.1
	toml@0.8.23
	toml@1.1.2+spec-1.1.0
	toml_datetime@0.6.11
	toml_datetime@1.1.1+spec-1.1.0
	toml_edit@0.22.27
	toml_write@0.1.2
	toml_writer@1.1.1+spec-1.1.0
	tower-service@0.3.3
	tracing-core@0.1.36
	tracing@0.1.44
	try-lock@0.2.5
	twox-hash@1.6.3
	typenum@1.20.0
	uncased@0.9.10
	unicode-ident@1.0.24
	unicode-segmentation@1.13.2
	unicode-width@0.2.2
	unicode-xid@0.2.6
	url@2.5.8
	utf8_iter@1.0.4
	utf8parse@0.2.2
	uuid@1.23.1
	validator@0.20.0
	vcpkg@0.2.15
	version_check@0.9.5
	walkdir@2.5.0
	want@0.3.1
	wasi@0.11.1+wasi-snapshot-preview1
	wasip2@1.0.3+wasi-0.2.9
	wasip3@0.4.0+wasi-0.3.0-rc-2026-01-06
	wasite@0.1.0
	wasm-bindgen-futures@0.4.68
	wasm-bindgen-macro-support@0.2.118
	wasm-bindgen-macro@0.2.118
	wasm-bindgen-shared@0.2.118
	wasm-bindgen@0.2.118
	wasm-encoder@0.244.0
	wasm-metadata@0.244.0
	wasm-streams@0.4.2
	wasmparser@0.244.0
	web-sys@0.3.95
	web-time@1.1.0
	which@4.4.2
	whoami@1.6.1
	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-collections@0.3.2
	windows-core@0.62.2
	windows-future@0.3.2
	windows-implement@0.60.2
	windows-interface@0.59.3
	windows-link@0.2.1
	windows-numerics@0.3.1
	windows-result@0.4.1
	windows-strings@0.5.1
	windows-sys@0.48.0
	windows-sys@0.59.0
	windows-sys@0.61.2
	windows-targets@0.42.2
	windows-targets@0.48.5
	windows-targets@0.52.6
	windows-threading@0.2.1
	windows@0.44.0
	windows@0.62.2
	windows_aarch64_gnullvm@0.42.2
	windows_aarch64_gnullvm@0.48.5
	windows_aarch64_gnullvm@0.52.6
	windows_aarch64_msvc@0.42.2
	windows_aarch64_msvc@0.48.5
	windows_aarch64_msvc@0.52.6
	windows_i686_gnu@0.42.2
	windows_i686_gnu@0.48.5
	windows_i686_gnu@0.52.6
	windows_i686_gnullvm@0.52.6
	windows_i686_msvc@0.42.2
	windows_i686_msvc@0.48.5
	windows_i686_msvc@0.52.6
	windows_x86_64_gnu@0.42.2
	windows_x86_64_gnu@0.48.5
	windows_x86_64_gnu@0.52.6
	windows_x86_64_gnullvm@0.42.2
	windows_x86_64_gnullvm@0.48.5
	windows_x86_64_gnullvm@0.52.6
	windows_x86_64_msvc@0.42.2
	windows_x86_64_msvc@0.48.5
	windows_x86_64_msvc@0.52.6
	winnow@0.7.15
	winreg@0.52.0
	wit-bindgen-core@0.51.0
	wit-bindgen-rust-macro@0.51.0
	wit-bindgen-rust@0.51.0
	wit-bindgen@0.51.0
	wit-bindgen@0.57.1
	wit-component@0.244.0
	wit-parser@0.244.0
	writeable@0.6.3
	xattr@1.6.1
	yasna@0.4.0
	yoke-derive@0.8.2
	yoke@0.8.2
	zerocopy-derive@0.8.48
	zerocopy@0.8.48
	zerofrom-derive@0.1.7
	zerofrom@0.1.7
	zeroize@1.8.2
	zerotrie@0.2.4
	zerovec-derive@0.11.3
	zerovec@0.11.6
	zmij@1.0.21
	zstd-seekable@0.1.23
"

RUST_MIN_VER="1.88"
inherit cargo

DESCRIPTION="A distributed version control system based on a theory of patches"
HOMEPAGE="https://pijul.org/ https://nest.pijul.com/pijul/pijul"
SRC_URI="${CARGO_CRATE_URIS}"

# We get the sources from one of the crates, as the Pijul source is
# managed with Pijul on nest.pijul.com - we obviously can't clone it
# (because we'd need a working pijul binary to do that), and the Nest
# doesn't support exporting archives (yet).
S="${ECARGO_VENDOR}/${PN}-${MY_PIJUL_PV}"

LICENSE="GPL-2+"
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 MIT Unicode-3.0 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
IUSE="git"
RESTRICT="test"

DEPEND="
	app-arch/zstd
	dev-libs/libsodium:=
	dev-libs/openssl:=
	git? ( dev-libs/libgit2:= )
"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

QA_FLAGS_IGNORED="usr/bin/pijul"

src_configure() {
	local myfeatures=(
		$(usev git)
	)
	cargo_src_configure
}