PORTNAME=	greptimedb
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.0
CATEGORIES=	databases

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Open-source, cloud-native, distributed time-series database
WWW=		https://greptime.com/ \
		https://github.com/GreptimeTeam/greptimedb

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	gmake:devel/gmake \
		protoc:devel/protobuf \
		${LOCALBASE}/bin/nm:devel/binutils \
		mold>0:devel/mold
LIB_DEPENDS=	libonig.so:devel/oniguruma \
		libzstd.so:archivers/zstd

USES=		cargo
USE_RC_SUBR=	greptimedb

GIT?=		git

USE_GITHUB=	yes
GH_ACCOUNT=	GreptimeTeam

LTO_UNSAFE=	yes # OOM with LTO on final binary linking

# Use mold linker to reduce memory usage during final linking
# (lld is OOM-killed linking hundreds of rlibs)
CC=		${WRKDIR}/cc-mold

CARGO_CRATES=	addr2line-0.24.2 \
		adler2-2.0.1 \
		adler32-1.2.0 \
		aead-0.5.2 \
		aes-0.8.4 \
		aes-0.9.3 \
		aes-siv-0.7.0 \
		ahash-0.7.8 \
		ahash-0.8.12 \
		aho-corasick-1.1.3 \
		aligned-vec-0.6.4 \
		alloc-no-stdlib-2.0.4 \
		alloc-stdlib-0.2.2 \
		allocator-api2-0.2.21 \
		ambient-authority-0.0.2 \
		android_system_properties-0.1.5 \
		anes-0.1.6 \
		ansi_term-0.12.1 \
		anstream-0.6.19 \
		anstyle-1.0.11 \
		anstyle-parse-0.2.7 \
		anstyle-query-1.1.3 \
		anstyle-wincon-3.0.9 \
		anyhow-1.0.102 \
		anymap2-0.13.0 \
		approx-0.4.0 \
		approx-0.5.1 \
		aquamarine-0.6.0 \
		arbitrary-1.4.1 \
		arc-swap-1.7.1 \
		array-init-2.1.0 \
		arrayref-0.3.9 \
		arrayvec-0.7.6 \
		arrow-56.2.0 \
		arrow-59.2.0 \
		arrow-arith-56.2.0 \
		arrow-arith-59.2.0 \
		arrow-array-56.2.0 \
		arrow-array-59.2.0 \
		arrow-buffer-56.2.0 \
		arrow-buffer-59.2.0 \
		arrow-cast-56.2.0 \
		arrow-cast-59.2.0 \
		arrow-csv-56.2.0 \
		arrow-csv-59.2.0 \
		arrow-data-56.2.0 \
		arrow-data-59.2.0 \
		arrow-flight-59.2.0 \
		arrow-ipc-56.2.0 \
		arrow-ipc-59.2.0 \
		arrow-json-56.2.0 \
		arrow-json-59.2.0 \
		arrow-ord-56.2.0 \
		arrow-ord-59.2.0 \
		arrow-row-56.2.0 \
		arrow-row-59.2.0 \
		arrow-schema-56.2.0 \
		arrow-schema-59.2.0 \
		arrow-select-56.2.0 \
		arrow-select-59.2.0 \
		arrow-string-56.2.0 \
		arrow-string-59.2.0 \
		ascii-canvas-4.0.0 \
		async-broadcast-0.7.2 \
		async-channel-1.9.0 \
		async-channel-2.3.1 \
		async-compression-0.4.41 \
		async-fs-2.1.2 \
		async-lock-3.4.0 \
		async-recursion-1.1.1 \
		async-stream-0.3.6 \
		async-stream-impl-0.3.6 \
		async-task-4.7.1 \
		async-trait-0.1.89 \
		async-walkdir-2.1.0 \
		asyncband-0.7.2 \
		asynchronous-codec-0.7.0 \
		atoi-2.0.0 \
		atomic-waker-1.1.2 \
		auto_impl-1.3.0 \
		autocfg-1.5.0 \
		aws-lc-rs-1.18.2 \
		aws-lc-sys-0.46.0 \
		axum-0.6.20 \
		axum-0.8.4 \
		axum-core-0.3.4 \
		axum-core-0.5.2 \
		axum-extra-0.10.1 \
		axum-macros-0.5.0 \
		backoff-0.4.0 \
		backon-1.6.0 \
		backtrace-0.3.75 \
		base16-0.2.1 \
		base16ct-1.0.0 \
		base62-2.2.1 \
		base64-0.13.1 \
		base64-0.21.7 \
		base64-0.22.1 \
		base64-0.23.1 \
		base64-simd-0.8.0 \
		base64ct-1.8.0 \
		bcder-0.7.5 \
		bigdecimal-0.3.1 \
		bigdecimal-0.4.8 \
		bincode-1.3.3 \
		bindgen-0.72.0 \
		bit-set-0.8.0 \
		bit-vec-0.8.0 \
		bitflags-1.3.2 \
		bitflags-2.12.1 \
		bitpacking-0.9.3 \
		bitvec-1.0.1 \
		blake2-0.10.6 \
		blake3-1.8.2 \
		block-buffer-0.10.4 \
		block-buffer-0.12.0 \
		block-padding-0.3.3 \
		block-padding-0.4.2 \
		blocking-1.6.1 \
		bon-3.6.5 \
		bon-macros-3.6.5 \
		borrow-or-share-0.2.4 \
		borsh-1.5.7 \
		borsh-derive-1.5.7 \
		brotli-8.0.1 \
		brotli-decompressor-5.0.0 \
		bs58-0.5.1 \
		bstr-1.12.0 \
		btoi-0.4.3 \
		btoi-0.5.0 \
		bufstream-0.1.4 \
		bumpalo-3.20.3 \
		bytecheck-0.6.12 \
		bytecheck_derive-0.6.12 \
		bytecount-0.6.9 \
		bytemuck-1.23.1 \
		byteorder-1.5.0 \
		bytes-1.11.1 \
		bzip2-0.6.1 \
		cactus-1.0.7 \
		cap-primitives-4.0.2 \
		cap-std-4.0.2 \
		cargo-manifest-0.19.1 \
		cast-0.3.0 \
		cbc-0.1.2 \
		cbc-0.2.1 \
		cc-1.4.5 \
		cedarwood-0.5.0 \
		census-0.4.2 \
		cexpr-0.6.0 \
		cfb-mode-0.8.2 \
		cfg-if-1.0.4 \
		cfg_aliases-0.1.1 \
		cfg_aliases-0.2.1 \
		cfgrammar-0.13.10 \
		cgmath-0.18.0 \
		chacha20-0.9.1 \
		chacha20-0.10.0 \
		chacha20poly1305-0.10.1 \
		charset-0.1.5 \
		chrono-0.4.45 \
		chrono-tz-0.10.4 \
		chrono-tz-build-0.5.0 \
		ciborium-0.2.2 \
		ciborium-io-0.2.2 \
		ciborium-ll-0.2.2 \
		cidr-0.3.1 \
		cipher-0.4.4 \
		cipher-0.5.2 \
		clang-sys-1.8.1 \
		clap-4.5.40 \
		clap_builder-4.5.40 \
		clap_derive-4.5.40 \
		clap_lex-0.7.5 \
		clipboard-win-5.4.1 \
		clocksource-0.8.1 \
		cmac-0.7.2 \
		cmake-0.1.54 \
		cmov-0.5.4 \
		codespan-reporting-0.12.0 \
		colorchoice-1.0.4 \
		colored-2.2.0 \
		combine-4.6.7 \
		comfy-table-7.1.2 \
		community-id-0.2.3 \
		compression-codecs-0.4.37 \
		compression-core-0.4.31 \
		concurrent-queue-2.5.0 \
		config-0.13.4 \
		console-0.15.11 \
		console-api-0.5.0 \
		console-subscriber-0.1.10 \
		const-hex-1.17.0 \
		const-oid-0.9.6 \
		const-oid-0.10.2 \
		const-random-0.1.18 \
		const-random-macro-0.1.16 \
		const_format-0.2.34 \
		const_format_proc_macros-0.2.34 \
		constant_time_eq-0.3.1 \
		convert_case-0.7.1 \
		convert_case-0.8.0 \
		convert_case-0.10.0 \
		core-foundation-0.9.4 \
		core-foundation-0.10.1 \
		core-foundation-sys-0.8.7 \
		core2-0.4.0 \
		cpp_demangle-0.4.4 \
		cpubits-0.1.1 \
		cpufeatures-0.2.17 \
		cpufeatures-0.3.0 \
		crc-3.4.0 \
		crc-catalog-2.4.0 \
		crc-fast-1.10.0 \
		crc32c-0.6.8 \
		crc32fast-1.4.2 \
		criterion-0.5.1 \
		criterion-0.7.0 \
		criterion-plot-0.5.0 \
		criterion-plot-0.6.0 \
		crossbeam-0.8.4 \
		crossbeam-channel-0.5.15 \
		crossbeam-deque-0.8.6 \
		crossbeam-epoch-0.9.18 \
		crossbeam-queue-0.3.12 \
		crossbeam-utils-0.8.21 \
		crunchy-0.2.4 \
		crypto-bigint-0.7.5 \
		crypto-common-0.1.6 \
		crypto-common-0.2.2 \
		crypto-primes-0.7.2 \
		crypto_secretbox-0.1.1 \
		csv-1.3.1 \
		csv-core-0.1.12 \
		ctor-1.0.7 \
		ctr-0.9.2 \
		ctr-0.10.1 \
		ctutils-0.4.2 \
		daemonize-0.5.0 \
		darling-0.14.4 \
		darling-0.20.11 \
		darling-0.21.1 \
		darling-0.23.0 \
		darling_core-0.14.4 \
		darling_core-0.20.11 \
		darling_core-0.21.1 \
		darling_core-0.23.0 \
		darling_macro-0.14.4 \
		darling_macro-0.20.11 \
		darling_macro-0.21.1 \
		darling_macro-0.23.0 \
		dary_heap-0.3.7 \
		dashmap-6.2.1 \
		data-encoding-2.11.0 \
		datafusion-orc-0.10.0 \
		datasketches-0.2.0 \
		dbl-0.3.2 \
		deadpool-0.12.2 \
		deadpool-postgres-0.14.1 \
		deadpool-runtime-0.1.4 \
		debugid-0.8.0 \
		delta-encoding-0.4.8 \
		der-0.7.10 \
		der-0.8.2 \
		der_derive-0.7.3 \
		deranged-0.5.8 \
		derivative-2.2.0 \
		derive-new-0.7.0 \
		derive_arbitrary-1.4.1 \
		derive_builder-0.11.2 \
		derive_builder-0.20.2 \
		derive_builder_core-0.11.2 \
		derive_builder_core-0.20.2 \
		derive_builder_macro-0.11.2 \
		derive_builder_macro-0.20.2 \
		derive_more-2.1.0 \
		derive_more-impl-2.1.0 \
		derive_utils-0.15.0 \
		des-0.9.0 \
		diff-0.1.13 \
		digest-0.10.7 \
		digest-0.11.3 \
		dirs-next-2.0.0 \
		dirs-sys-next-0.1.2 \
		displaydoc-0.2.5 \
		dlv-list-0.3.0 \
		dlv-list-0.5.2 \
		dns-lookup-3.0.1 \
		doc-comment-0.3.3 \
		document-features-0.2.11 \
		domain-0.12.1 \
		domain-macros-0.12.1 \
		dotenv-0.15.0 \
		dotenvy-0.15.7 \
		downcast-0.11.0 \
		downcast-rs-2.0.1 \
		dunce-1.0.5 \
		duration-str-0.11.3 \
		dyn-clone-1.0.19 \
		dyn-fmt-0.4.3 \
		earcutr-0.4.3 \
		either-1.15.0 \
		email_address-0.2.9 \
		ena-0.14.3 \
		encode_unicode-1.0.0 \
		encoding_rs-0.8.35 \
		enum_dispatch-0.3.13 \
		env_filter-0.1.3 \
		env_logger-0.11.8 \
		equator-0.4.2 \
		equator-macro-0.4.2 \
		equivalent-1.0.2 \
		erased-serde-0.4.6 \
		errno-0.3.13 \
		error-code-3.3.2 \
		etcd-client-0.17.0 \
		etcetera-0.8.0 \
		etcetera-0.11.0 \
		ethnum-1.5.3 \
		event-listener-2.5.3 \
		event-listener-5.4.0 \
		event-listener-strategy-0.5.4 \
		exitcode-1.1.2 \
		fail-0.5.1 \
		fallible-iterator-0.2.0 \
		fallible-iterator-0.3.0 \
		fallible-streaming-iterator-0.1.9 \
		fancy-regex-0.17.0 \
		fast-float2-0.2.3 \
		fastbloom-0.8.0 \
		fastdivide-0.4.2 \
		fastrand-2.3.0 \
		filetime-0.2.25 \
		find-msvc-tools-0.1.12 \
		findshlibs-0.10.2 \
		fixedbitset-0.4.2 \
		fixedbitset-0.5.7 \
		flagset-0.4.7 \
		flatbuffers-25.2.10 \
		flate2-1.1.9 \
		flexbuffers-25.2.10 \
		float-cmp-0.10.0 \
		float_eq-1.0.1 \
		float_extras-0.1.6 \
		float_next_after-1.0.0 \
		fluent-uri-0.1.4 \
		fluent-uri-0.4.1 \
		flume-0.11.1 \
		flume-0.12.0 \
		fnv-1.0.7 \
		foldhash-0.1.5 \
		foldhash-0.2.0 \
		form_urlencoded-1.2.2 \
		fraction-0.15.4 \
		fragile-2.0.1 \
		framehop-0.13.3 \
		frunk-0.4.4 \
		frunk_core-0.4.4 \
		frunk_derives-0.4.4 \
		frunk_proc_macro_helpers-0.1.4 \
		frunk_proc_macros-0.1.4 \
		fs-set-times-0.20.3 \
		fs2-0.4.3 \
		fs4-0.13.1 \
		fs_extra-1.3.0 \
		fsevent-sys-4.1.0 \
		fst-0.4.7 \
		funty-2.0.0 \
		futures-0.3.31 \
		futures-channel-0.3.34 \
		futures-core-0.3.34 \
		futures-executor-0.3.34 \
		futures-intrusive-0.5.0 \
		futures-io-0.3.34 \
		futures-lite-2.6.0 \
		futures-macro-0.3.34 \
		futures-sink-0.3.34 \
		futures-task-0.3.34 \
		futures-timer-3.0.3 \
		futures-util-0.3.34 \
		fxhash-0.2.1 \
		g2gen-1.2.2 \
		g2p-1.2.2 \
		g2poly-1.2.2 \
		generator-0.8.5 \
		generic-array-0.14.7 \
		geo-0.29.3 \
		geo-types-0.7.16 \
		geographiclib-rs-0.2.5 \
		geohash-0.13.1 \
		get-size2-0.1.4 \
		getopts-0.2.23 \
		getrandom-0.2.16 \
		getrandom-0.3.4 \
		getrandom-0.4.1 \
		gimli-0.31.1 \
		git2-0.20.4 \
		glob-0.3.2 \
		gloo-timers-0.3.0 \
		grok-2.4.1 \
		h2-0.3.26 \
		h2-0.4.11 \
		h3o-0.6.4 \
		h3o-bit-0.1.1 \
		half-2.7.1 \
		halfbrown-0.3.0 \
		hash32-0.3.1 \
		hashbrown-0.12.3 \
		hashbrown-0.14.5 \
		hashbrown-0.15.4 \
		hashbrown-0.16.1 \
		hashbrown-0.17.1 \
		hashlink-0.10.0 \
		hashlink-0.11.1 \
		hdfs-native-0.14.6 \
		hdrhistogram-7.5.4 \
		headers-0.4.1 \
		headers-core-0.3.0 \
		heapless-0.8.0 \
		heck-0.4.1 \
		heck-0.5.0 \
		hermit-abi-0.5.2 \
		hex-0.4.3 \
		hifijson-0.5.0 \
		hkdf-0.12.4 \
		hkdf-0.13.0 \
		hmac-0.12.1 \
		hmac-0.13.0 \
		home-0.5.11 \
		hostname-0.3.1 \
		hostname-0.4.1 \
		htmlescape-0.3.1 \
		http-0.2.12 \
		http-1.5.0 \
		http-body-0.4.6 \
		http-body-1.0.1 \
		http-body-util-0.1.3 \
		http-range-header-0.4.2 \
		httparse-1.10.1 \
		httpdate-1.0.3 \
		human-panic-2.0.2 \
		humantime-2.2.0 \
		humantime-serde-1.1.1 \
		hybrid-array-0.4.12 \
		hyper-0.14.32 \
		hyper-1.6.0 \
		hyper-http-proxy-1.1.0 \
		hyper-rustls-0.27.7 \
		hyper-timeout-0.4.1 \
		hyper-timeout-0.5.2 \
		hyper-util-0.1.17 \
		hyperloglogplus-0.4.1 \
		i_float-1.6.0 \
		i_key_sort-0.2.0 \
		i_overlay-1.9.4 \
		i_shape-1.6.0 \
		i_tree-0.8.3 \
		iana-time-zone-0.1.63 \
		iana-time-zone-haiku-0.1.2 \
		icu_collections-2.0.0 \
		icu_locale_core-2.0.0 \
		icu_normalizer-2.0.0 \
		icu_normalizer_data-2.0.0 \
		icu_properties-2.0.1 \
		icu_properties_data-2.0.1 \
		icu_provider-2.0.0 \
		id-arena-2.3.0 \
		ident_case-1.0.1 \
		idna-1.1.0 \
		idna_adapter-1.2.1 \
		if_chain-1.0.2 \
		include-flate-0.3.3 \
		include-flate-codegen-0.3.3 \
		include-flate-compress-0.3.3 \
		include_dir-0.7.4 \
		include_dir_macros-0.7.4 \
		indexmap-1.9.3 \
		indexmap-2.14.2 \
		indicatif-0.17.11 \
		indoc-2.0.6 \
		inferno-0.11.21 \
		inferno-0.12.2 \
		influxdb-line-protocol-2.0.0 \
		inherent-1.0.12 \
		inotify-0.11.0 \
		inotify-sys-0.1.5 \
		inout-0.1.4 \
		inout-0.2.2 \
		instant-0.1.13 \
		integer-encoding-4.0.2 \
		inventory-0.3.20 \
		io-enum-1.2.0 \
		io-extras-0.19.0 \
		io-lifetimes-2.0.4 \
		io-lifetimes-3.0.1 \
		ipcrypt-rs-0.9.4 \
		ipnet-2.11.0 \
		is-terminal-0.4.16 \
		is_terminal_polyfill-1.70.1 \
		iso8601-0.6.3 \
		itertools-0.10.5 \
		itertools-0.11.0 \
		itertools-0.12.1 \
		itertools-0.13.0 \
		itertools-0.14.0 \
		itertools-0.15.0 \
		itoa-1.0.15 \
		jaq-core-3.1.1 \
		jaq-json-2.0.3 \
		jaq-std-3.0.3 \
		jieba-macros-0.10.1 \
		jieba-rs-0.10.1 \
		jiff-0.2.28 \
		jiff-static-0.2.28 \
		jiff-tzdb-0.1.6 \
		jiff-tzdb-platform-0.1.3 \
		jni-0.22.4 \
		jni-macros-0.22.4 \
		jni-sys-0.4.1 \
		jni-sys-macros-0.4.1 \
		jobserver-0.1.33 \
		js-sys-0.3.99 \
		json-patch-2.0.0 \
		json5-0.4.1 \
		jsonpath-rust-0.5.1 \
		jsonpath-rust-0.7.5 \
		jsonptr-0.4.7 \
		jsonschema-0.38.1 \
		k8s-openapi-0.22.0 \
		keccak-0.1.6 \
		keyed_priority_queue-0.4.2 \
		kqueue-1.1.1 \
		kqueue-sys-1.0.4 \
		kube-0.92.1 \
		kube-client-0.92.1 \
		kube-core-0.92.1 \
		kube-derive-0.92.1 \
		kube-runtime-0.92.1 \
		lalrpop-0.22.2 \
		lalrpop-util-0.22.2 \
		lazy-regex-3.4.1 \
		lazy-regex-proc_macros-3.4.1 \
		lazy_static-1.5.0 \
		leb128fmt-0.1.0 \
		levenshtein_automata-0.2.1 \
		lexical-core-1.0.5 \
		lexical-parse-float-1.0.5 \
		lexical-parse-integer-1.0.5 \
		lexical-util-1.0.6 \
		lexical-write-float-1.0.5 \
		lexical-write-integer-1.0.5 \
		libbz2-rs-sys-0.2.1 \
		libc-0.2.186 \
		libflate-2.3.0 \
		libflate_lz77-2.3.0 \
		libfuzzer-sys-0.4.9 \
		libgit2-sys-0.18.3+1.9.2 \
		libloading-0.8.8 \
		libloading-0.9.0 \
		liblzma-0.4.6 \
		liblzma-sys-0.4.4 \
		libm-0.2.15 \
		libredox-0.1.20 \
		libsqlite3-sys-0.30.1 \
		libz-sys-1.1.22 \
		link-section-0.18.1 \
		linked-hash-map-0.5.6 \
		linktime-proc-macro-0.2.0 \
		linux-raw-sys-0.4.15 \
		linux-raw-sys-0.9.4 \
		litemap-0.8.0 \
		litrs-0.4.1 \
		local-ip-address-0.6.5 \
		lock_api-0.4.13 \
		log-0.4.33 \
		loom-0.7.2 \
		lrlex-0.13.10 \
		lrpar-0.13.10 \
		lrtable-0.13.10 \
		lru-0.16.4 \
		lru-0.18.2 \
		lru-slab-0.1.2 \
		lz4-1.28.1 \
		lz4-sys-1.11.1+lz4-1.10.0 \
		lz4_flex-0.11.6 \
		lz4_flex-0.13.1 \
		lz4_flex-0.14.0 \
		lzokay-native-0.1.0 \
		macho-unwind-info-0.5.0 \
		mappings-0.7.1 \
		match_cfg-0.1.0 \
		matchers-0.2.0 \
		matchit-0.7.3 \
		matchit-0.8.4 \
		matrixmultiply-0.3.10 \
		maybe-owned-0.3.4 \
		md-5-0.10.6 \
		md-5-0.11.0 \
		md5-0.8.0 \
		mea-0.6.4 \
		measure_time-0.9.0 \
		memchr-2.8.3 \
		memmap2-0.5.10 \
		memmap2-0.9.5 \
		memoffset-0.7.1 \
		mime-0.3.17 \
		mime_guess-2.0.5 \
		minijinja-1.0.22 \
		minimal-lexical-0.2.1 \
		miniz_oxide-0.8.9 \
		mio-1.2.1 \
		mockall-0.13.1 \
		mockall_derive-0.13.1 \
		moka-0.12.10 \
		multer-3.1.0 \
		multimap-0.10.1 \
		mur3-0.1.0 \
		murmurhash32-0.3.1 \
		mysql-28.0.0 \
		mysql-common-derive-0.31.2 \
		mysql-common-derive-0.32.1 \
		mysql_async-0.37.0 \
		mysql_common-0.32.4 \
		mysql_common-0.37.3 \
		mysql_common-0.38.2 \
		nalgebra-0.33.2 \
		nalgebra-macros-0.2.2 \
		named_pipe-0.4.1 \
		ndk-context-0.1.1 \
		neli-0.6.5 \
		neli-proc-macros-0.1.4 \
		new_debug_unreachable-1.0.6 \
		nix-0.26.4 \
		nix-0.28.0 \
		nix-0.30.1 \
		no_std_io2-0.9.4 \
		nohash-0.2.0 \
		nom-7.1.3 \
		nom-8.0.0 \
		nom-language-0.1.0 \
		notify-8.0.0 \
		notify-types-2.0.0 \
		ntapi-0.4.1 \
		nu-ansi-term-0.50.3 \
		num-0.4.3 \
		num-bigint-0.4.6 \
		num-bigint-0.5.1 \
		num-bigint-dig-0.8.6 \
		num-cmp-0.1.0 \
		num-complex-0.4.6 \
		num-conv-0.2.0 \
		num-derive-0.4.2 \
		num-format-0.4.4 \
		num-integer-0.1.46 \
		num-iter-0.1.45 \
		num-rational-0.4.2 \
		num-traits-0.2.19 \
		num_cpus-1.17.0 \
		num_enum-0.5.11 \
		num_enum-0.6.1 \
		num_enum-0.7.4 \
		num_enum_derive-0.5.11 \
		num_enum_derive-0.6.1 \
		num_enum_derive-0.7.4 \
		num_threads-0.1.7 \
		number_prefix-0.4.0 \
		objc2-0.6.4 \
		objc2-core-foundation-0.3.2 \
		objc2-encode-4.1.0 \
		objc2-foundation-0.3.2 \
		objc2-system-configuration-0.3.2 \
		object-0.29.0 \
		object-0.36.7 \
		object-pool-0.5.4 \
		object_store-0.13.2 \
		octseq-0.6.1 \
		ofb-0.6.1 \
		once_cell-1.21.4 \
		once_cell_polyfill-1.70.1 \
		oneshot-0.1.13 \
		onig-6.5.1 \
		onig_sys-69.9.1 \
		oorandom-11.1.5 \
		opaque-debug-0.3.1 \
		opendal-0.59.4 \
		opendal-core-0.59.4 \
		opendal-http-transport-reqwest-0.59.4 \
		opendal-layer-concurrent-limit-0.59.4 \
		opendal-layer-logging-0.59.4 \
		opendal-layer-observe-metrics-common-0.59.4 \
		opendal-layer-prometheus-0.59.4 \
		opendal-layer-retry-0.59.4 \
		opendal-layer-timeout-0.59.4 \
		opendal-layer-tracing-0.59.4 \
		opendal-service-azblob-0.59.4 \
		opendal-service-azure-common-0.59.4 \
		opendal-service-fs-0.59.4 \
		opendal-service-gcs-0.59.4 \
		opendal-service-hdfs-native-0.59.4 \
		opendal-service-http-0.59.4 \
		opendal-service-mysql-0.59.4 \
		opendal-service-oss-0.59.4 \
		opendal-service-s3-0.59.4 \
		openssl-probe-0.1.6 \
		opentelemetry-0.32.0 \
		opentelemetry-http-0.32.0 \
		opentelemetry-otlp-0.32.0 \
		opentelemetry-proto-0.32.0 \
		opentelemetry-semantic-conventions-0.30.0 \
		opentelemetry-semantic-conventions-0.31.0 \
		opentelemetry_sdk-0.32.1 \
		orc-rust-0.9.0 \
		ordered-float-2.10.1 \
		ordered-float-4.6.0 \
		ordered-float-5.3.0 \
		ordered-multimap-0.4.3 \
		ordered-multimap-0.7.3 \
		os_info-3.12.0 \
		outref-0.5.2 \
		ownedbytes-0.9.0 \
		packedvec-1.2.5 \
		pad-0.1.6 \
		parking-2.2.1 \
		parking_lot-0.11.2 \
		parking_lot-0.12.4 \
		parking_lot_core-0.8.6 \
		parking_lot_core-0.9.11 \
		parquet-59.2.0 \
		parquet-variant-59.2.0 \
		parquet-variant-compute-59.2.0 \
		parquet-variant-json-59.2.0 \
		parse-size-1.1.0 \
		parse-zoneinfo-0.4.1 \
		paste-1.0.15 \
		path-slash-0.2.1 \
		pathdiff-0.2.3 \
		pbjson-0.8.0 \
		pbjson-build-0.8.0 \
		pbjson-types-0.8.0 \
		pbkdf2-0.12.2 \
		pe-unwind-info-0.4.0 \
		peeking_take_while-1.0.0 \
		pem-3.0.5 \
		pem-rfc7468-0.7.0 \
		pem-rfc7468-1.0.0 \
		percent-encoding-2.3.2 \
		permutation-0.4.1 \
		pest-2.8.1 \
		pest_derive-2.8.1 \
		pest_generator-2.8.1 \
		pest_meta-2.8.1 \
		petgraph-0.6.5 \
		petgraph-0.7.1 \
		petgraph-0.8.3 \
		pg_interval-0.6.0 \
		pgwire-0.41.0 \
		phf-0.12.1 \
		phf-0.13.1 \
		phf_codegen-0.12.1 \
		phf_codegen-0.13.1 \
		phf_generator-0.12.1 \
		phf_generator-0.13.1 \
		phf_macros-0.12.1 \
		phf_shared-0.11.3 \
		phf_shared-0.12.1 \
		phf_shared-0.13.1 \
		pin-project-1.1.10 \
		pin-project-internal-1.1.10 \
		pin-project-lite-0.2.16 \
		pin-utils-0.1.0 \
		piper-0.2.4 \
		pkcs1-0.7.5 \
		pkcs1-0.8.0-rc.5 \
		pkcs5-0.7.1 \
		pkcs8-0.10.2 \
		pkcs8-0.11.0 \
		pkg-config-0.3.32 \
		plain-0.2.3 \
		plist-1.7.2 \
		plotters-0.3.7 \
		plotters-backend-0.3.7 \
		plotters-svg-0.3.7 \
		poly1305-0.8.0 \
		portable-atomic-1.11.1 \
		portable-atomic-util-0.2.7 \
		postgres-protocol-0.6.12 \
		postgres-types-0.2.14 \
		potential_utf-0.1.2 \
		powerfmt-0.2.0 \
		pprof_util-0.8.0 \
		ppv-lite86-0.2.21 \
		precomputed-hash-0.1.1 \
		predicates-3.1.3 \
		predicates-core-1.0.9 \
		predicates-tree-1.0.12 \
		pretty_assertions-1.4.1 \
		prettydiff-0.6.4 \
		prettyplease-0.2.37 \
		prettytable-rs-0.10.0 \
		proc-macro-crate-1.3.1 \
		proc-macro-crate-3.3.0 \
		proc-macro-error-attr2-2.0.0 \
		proc-macro-error2-2.0.1 \
		proc-macro2-1.0.105 \
		procfs-0.17.0 \
		procfs-core-0.17.0 \
		prometheus-0.13.4 \
		prometheus-0.14.0 \
		prometheus-static-metric-0.5.1 \
		promql-parser-0.10.0 \
		proptest-1.9.0 \
		prost-0.11.9 \
		prost-0.12.6 \
		prost-0.13.5 \
		prost-0.14.1 \
		prost-build-0.12.6 \
		prost-build-0.14.1 \
		prost-derive-0.11.9 \
		prost-derive-0.12.6 \
		prost-derive-0.13.5 \
		prost-derive-0.14.1 \
		prost-reflect-0.14.7 \
		prost-types-0.11.9 \
		prost-types-0.12.6 \
		prost-types-0.13.5 \
		prost-types-0.14.1 \
		protobuf-2.28.0 \
		protobuf-3.7.2 \
		protobuf-codegen-2.28.0 \
		protobuf-support-3.7.2 \
		protoc-2.28.0 \
		protoc-bin-vendored-3.2.0 \
		protoc-bin-vendored-linux-aarch_64-3.2.0 \
		protoc-bin-vendored-linux-ppcle_64-3.2.0 \
		protoc-bin-vendored-linux-s390_64-3.2.0 \
		protoc-bin-vendored-linux-x86_32-3.2.0 \
		protoc-bin-vendored-linux-x86_64-3.2.0 \
		protoc-bin-vendored-macos-aarch_64-3.2.0 \
		protoc-bin-vendored-macos-x86_64-3.2.0 \
		protoc-bin-vendored-win32-3.2.0 \
		protoc-rust-2.28.0 \
		psl-2.1.123 \
		psl-types-2.0.11 \
		psm-0.1.26 \
		ptr_meta-0.1.4 \
		ptr_meta_derive-0.1.4 \
		publicsuffix-2.3.0 \
		pulldown-cmark-0.13.0 \
		pulldown-cmark-to-cmark-21.1.0 \
		quick-xml-0.26.0 \
		quick-xml-0.37.5 \
		quick-xml-0.41.0 \
		quinn-0.11.8 \
		quinn-proto-0.11.16 \
		quinn-udp-0.5.13 \
		quote-1.0.44 \
		quoted-string-0.6.1 \
		quoted_printable-0.5.1 \
		r-efi-5.3.0 \
		radium-0.7.0 \
		raft-engine-0.4.2 \
		rand-0.8.5 \
		rand-0.9.4 \
		rand-0.10.1 \
		rand_chacha-0.3.1 \
		rand_chacha-0.9.0 \
		rand_core-0.6.4 \
		rand_core-0.9.3 \
		rand_core-0.10.0 \
		rand_pcg-0.10.2 \
		rand_xorshift-0.4.0 \
		ratelimit-0.10.0 \
		rawpointer-0.2.1 \
		rayon-1.10.0 \
		rayon-core-1.12.1 \
		recursive-0.1.1 \
		recursive-proc-macro-impl-0.1.1 \
		redox_syscall-0.2.16 \
		redox_syscall-0.5.13 \
		redox_syscall-0.9.3 \
		redox_users-0.4.6 \
		ref-cast-1.0.24 \
		ref-cast-impl-1.0.24 \
		referencing-0.38.1 \
		regex-1.12.2 \
		regex-automata-0.4.13 \
		regex-filtered-0.2.0 \
		regex-lite-0.1.6 \
		regex-syntax-0.8.10 \
		regress-0.10.5 \
		relative-path-1.9.3 \
		relative-path-2.0.1 \
		rend-0.4.2 \
		replace_with-0.1.8 \
		reqsign-aliyun-oss-3.1.3 \
		reqsign-aws-core-3.1.1 \
		reqsign-aws-v4-3.3.0 \
		reqsign-azure-storage-3.1.2 \
		reqsign-core-3.3.1 \
		reqsign-file-read-tokio-3.0.6 \
		reqsign-google-3.0.4 \
		reqwest-0.12.24 \
		reqwest-0.13.4 \
		reqwest-middleware-0.4.2 \
		reqwest-retry-0.8.0 \
		retry-policies-0.5.2 \
		rgb-0.8.50 \
		ring-0.17.14 \
		rkyv-0.7.46 \
		rkyv_derive-0.7.46 \
		rle-decode-fast-1.0.3 \
		roaring-0.10.12 \
		robust-1.2.0 \
		ron-0.7.1 \
		roxmltree-0.21.1 \
		rsa-0.9.10 \
		rsa-0.10.0-rc.19 \
		rsasl-2.2.1 \
		rstar-0.12.2 \
		rstest-0.25.0 \
		rstest_macros-0.25.0 \
		rstest_reuse-0.7.0 \
		rust-embed-6.8.1 \
		rust-embed-impl-6.8.1 \
		rust-embed-utils-7.8.1 \
		rust-ini-0.18.0 \
		rust-ini-0.21.1 \
		rust-stemmers-1.2.0 \
		rust_decimal-1.42.0 \
		rustc-demangle-0.1.25 \
		rustc-hash-2.1.1 \
		rustc_version-0.4.1 \
		rustix-0.38.44 \
		rustix-1.0.7 \
		rustix-linux-procfs-0.1.1 \
		rustls-0.23.46 \
		rustls-native-certs-0.7.3 \
		rustls-native-certs-0.8.1 \
		rustls-pemfile-2.2.0 \
		rustls-pki-types-1.12.0 \
		rustls-platform-verifier-0.7.0 \
		rustls-platform-verifier-android-0.1.1 \
		rustls-webpki-0.103.15 \
		rustversion-1.0.21 \
		rustyline-17.0.2 \
		ryu-1.0.20 \
		s2-0.0.12 \
		safe_arch-0.7.4 \
		salsa20-0.10.2 \
		same-file-1.0.6 \
		saturating-0.1.0 \
		schannel-0.1.27 \
		schemars-0.8.22 \
		schemars-0.9.0 \
		schemars-1.2.1 \
		schemars_derive-0.8.22 \
		scoped-tls-1.0.1 \
		scopeguard-1.2.0 \
		scrypt-0.11.0 \
		sea-query-0.32.7 \
		sea-query-derive-0.4.3 \
		seahash-4.1.0 \
		secrecy-0.8.0 \
		security-framework-2.11.1 \
		security-framework-3.7.0 \
		security-framework-sys-2.17.0 \
		self_cell-1.3.0 \
		semver-1.0.27 \
		seq-macro-0.3.6 \
		serde-1.0.228 \
		serde-value-0.7.0 \
		serde_core-1.0.228 \
		serde_derive-1.0.228 \
		serde_derive_internals-0.29.1 \
		serde_json-1.0.149 \
		serde_path_to_error-0.1.17 \
		serde_repr-0.1.20 \
		serde_spanned-0.6.9 \
		serde_tokenstream-0.2.2 \
		serde_urlencoded-0.7.1 \
		serde_with-3.21.0 \
		serde_with_macros-3.21.0 \
		serde_yaml-0.9.34+deprecated \
		serde_yaml_ng-0.10.0 \
		serdect-0.4.3 \
		sha-1-0.10.1 \
		sha1-0.10.6 \
		sha1-0.11.0 \
		sha2-0.10.9 \
		sha2-0.11.0 \
		sha3-0.10.8 \
		sharded-slab-0.1.7 \
		shlex-1.3.0 \
		shlex-2.0.1 \
		signal-hook-registry-1.4.5 \
		signature-2.2.0 \
		signature-3.0.0 \
		simba-0.9.0 \
		simd-adler32-0.3.7 \
		simd-json-0.15.1 \
		simd_cesu8-1.1.1 \
		simdutf8-0.1.5 \
		similar-2.7.0 \
		similar-asserts-1.7.0 \
		siphasher-1.0.1 \
		sketches-ddsketch-0.4.0 \
		slab-0.4.12 \
		smallvec-1.15.1 \
		smol_str-0.3.4 \
		snafu-0.7.5 \
		snafu-0.8.6 \
		snafu-derive-0.7.5 \
		snafu-derive-0.8.6 \
		snap-1.1.1 \
		socket2-0.5.10 \
		socket2-0.6.4 \
		spade-2.14.0 \
		sparsevec-0.2.2 \
		spin-0.9.8 \
		spin-0.10.1 \
		spki-0.7.3 \
		spki-0.8.1 \
		sqlparser_derive-0.1.1 \
		sqlx-0.8.6 \
		sqlx-0.9.0 \
		sqlx-core-0.8.6 \
		sqlx-core-0.9.0 \
		sqlx-macros-0.8.6 \
		sqlx-macros-0.9.0 \
		sqlx-macros-core-0.8.6 \
		sqlx-macros-core-0.9.0 \
		sqlx-mysql-0.8.6 \
		sqlx-mysql-0.9.0 \
		sqlx-postgres-0.8.6 \
		sqlx-postgres-0.9.0 \
		sqlx-sqlite-0.8.6 \
		sqlx-sqlite-0.9.0 \
		stable_deref_trait-1.2.0 \
		stacker-0.1.25 \
		static_assertions-1.1.0 \
		str_stack-0.1.0 \
		strfmt-0.2.4 \
		string_cache-0.8.9 \
		stringprep-0.1.5 \
		strip-ansi-escapes-0.2.1 \
		strsim-0.10.0 \
		strsim-0.11.1 \
		strum-0.25.0 \
		strum-0.26.3 \
		strum-0.27.1 \
		strum_macros-0.25.3 \
		strum_macros-0.26.4 \
		strum_macros-0.27.1 \
		subprocess-0.2.9 \
		subtle-2.6.1 \
		symbolic-common-12.15.5 \
		symbolic-demangle-12.15.5 \
		symlink-0.1.0 \
		syn-1.0.109 \
		syn-2.0.117 \
		syn-3.0.5 \
		sync_wrapper-0.1.2 \
		sync_wrapper-1.0.2 \
		synstructure-0.13.2 \
		sysinfo-0.33.1 \
		syslog_loose-0.22.0 \
		tagptr-0.2.0 \
		tantivy-0.26.1 \
		tantivy-bitpacker-0.10.0 \
		tantivy-columnar-0.7.0 \
		tantivy-common-0.11.0 \
		tantivy-fst-0.5.0 \
		tantivy-jieba-0.20.0 \
		tantivy-query-grammar-0.26.0 \
		tantivy-sstable-0.7.0 \
		tantivy-stacker-0.7.0 \
		tantivy-tokenizer-api-0.7.0 \
		tap-1.0.1 \
		tar-0.4.46 \
		temp-env-0.3.6 \
		tempfile-3.23.0 \
		term-0.7.0 \
		term-1.0.2 \
		termcolor-1.4.1 \
		termtree-0.5.1 \
		thiserror-1.0.69 \
		thiserror-2.0.21 \
		thiserror-impl-1.0.69 \
		thiserror-impl-2.0.21 \
		thread-id-4.2.2 \
		thread_local-1.1.9 \
		tikv-jemalloc-ctl-0.7.0 \
		tikv-jemallocator-0.7.0 \
		time-0.3.47 \
		time-core-0.1.8 \
		time-macros-0.2.27 \
		tiny-keccak-2.0.2 \
		tinystr-0.8.1 \
		tinytemplate-1.2.1 \
		tinyvec-1.9.0 \
		tinyvec_macros-0.1.1 \
		tls_codec-0.4.2 \
		tls_codec_derive-0.4.2 \
		tokio-1.52.3 \
		tokio-io-timeout-1.2.0 \
		tokio-macros-2.7.0 \
		tokio-metrics-0.3.1 \
		tokio-metrics-collector-0.2.3 \
		tokio-postgres-0.7.18 \
		tokio-postgres-rustls-0.14.0 \
		tokio-rustls-0.26.2 \
		tokio-stream-0.1.17 \
		tokio-test-0.4.4 \
		tokio-util-0.7.18 \
		toml-0.5.11 \
		toml-0.8.23 \
		toml_datetime-0.6.11 \
		toml_edit-0.19.15 \
		toml_edit-0.22.27 \
		toml_write-0.1.2 \
		tonic-0.9.2 \
		tonic-0.14.2 \
		tonic-build-0.14.2 \
		tonic-prost-0.14.2 \
		tonic-prost-build-0.14.2 \
		tonic-reflection-0.14.2 \
		tonic-types-0.14.5 \
		tonic-web-0.14.5 \
		tower-0.4.13 \
		tower-0.5.2 \
		tower-http-0.5.2 \
		tower-http-0.6.11 \
		tower-layer-0.3.3 \
		tower-service-0.3.3 \
		tracing-0.1.44 \
		tracing-appender-0.2.5 \
		tracing-attributes-0.1.31 \
		tracing-core-0.1.36 \
		tracing-log-0.2.0 \
		tracing-opentelemetry-0.33.0 \
		tracing-serde-0.2.0 \
		tracing-subscriber-0.3.23 \
		trim-in-place-0.1.7 \
		try-lock-0.2.5 \
		twox-hash-2.1.1 \
		typed-arena-2.0.2 \
		typeid-1.0.3 \
		typenum-1.20.1 \
		typetag-0.2.22 \
		typetag-impl-0.2.22 \
		typify-0.5.0 \
		typify-impl-0.5.0 \
		typify-macro-0.5.0 \
		ua-parser-0.2.1 \
		ucd-trie-0.1.7 \
		uddsketch-rs-0.1.0 \
		unarray-0.1.4 \
		uncased-0.9.10 \
		unicase-2.8.1 \
		unicode-bidi-0.3.18 \
		unicode-general-category-1.1.0 \
		unicode-ident-1.0.22 \
		unicode-normalization-0.1.24 \
		unicode-properties-0.1.3 \
		unicode-segmentation-1.12.0 \
		unicode-width-0.1.14 \
		unicode-width-0.2.1 \
		unicode-xid-0.2.6 \
		universal-hash-0.5.1 \
		unsafe-libyaml-0.2.11 \
		untrusted-0.7.1 \
		untrusted-0.9.0 \
		url-2.5.7 \
		urlencoding-2.1.3 \
		utf8-ranges-1.0.5 \
		utf8-width-0.1.7 \
		utf8_iter-1.0.4 \
		utf8parse-0.2.2 \
		uuid-1.26.0 \
		uuid-simd-0.8.0 \
		valuable-0.1.1 \
		value-trait-0.11.0 \
		vcpkg-0.2.15 \
		vec1-1.12.1 \
		vergen-8.3.2 \
		version_check-0.9.5 \
		vob-3.0.5 \
		vrl-0.33.1 \
		vsimd-0.8.0 \
		vte-0.14.1 \
		vu128-1.1.0 \
		walkdir-2.5.0 \
		want-0.3.1 \
		wasi-0.11.1+wasi-snapshot-preview1 \
		wasi-0.14.7+wasi-0.2.4 \
		wasip2-1.0.2+wasi-0.2.9 \
		wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06 \
		wasite-0.1.0 \
		wasite-1.0.2 \
		wasm-bindgen-0.2.122 \
		wasm-bindgen-futures-0.4.72 \
		wasm-bindgen-macro-0.2.122 \
		wasm-bindgen-macro-support-0.2.122 \
		wasm-bindgen-shared-0.2.122 \
		wasm-encoder-0.244.0 \
		wasm-metadata-0.244.0 \
		wasm-streams-0.4.2 \
		wasm-streams-0.5.0 \
		wasmparser-0.244.0 \
		wasmtimer-0.4.3 \
		web-sys-0.3.99 \
		web-time-1.1.0 \
		webbrowser-1.2.1 \
		webpki-0.22.4 \
		webpki-root-certs-1.0.7 \
		webpki-roots-0.26.11 \
		webpki-roots-1.0.10 \
		which-4.4.2 \
		whoami-1.6.0 \
		whoami-2.1.3 \
		wide-0.7.33 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.9 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-0.57.0 \
		windows-0.61.3 \
		windows-collections-0.2.0 \
		windows-core-0.57.0 \
		windows-core-0.61.2 \
		windows-future-0.2.1 \
		windows-implement-0.57.0 \
		windows-implement-0.60.0 \
		windows-interface-0.57.0 \
		windows-interface-0.59.1 \
		windows-link-0.1.3 \
		windows-link-0.2.1 \
		windows-numerics-0.2.0 \
		windows-result-0.1.2 \
		windows-result-0.3.4 \
		windows-strings-0.4.2 \
		windows-sys-0.48.0 \
		windows-sys-0.52.0 \
		windows-sys-0.59.0 \
		windows-sys-0.60.2 \
		windows-sys-0.61.2 \
		windows-targets-0.48.5 \
		windows-targets-0.52.6 \
		windows-targets-0.53.5 \
		windows-threading-0.1.0 \
		windows_aarch64_gnullvm-0.48.5 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_gnullvm-0.53.1 \
		windows_aarch64_msvc-0.48.5 \
		windows_aarch64_msvc-0.52.6 \
		windows_aarch64_msvc-0.53.1 \
		windows_i686_gnu-0.48.5 \
		windows_i686_gnu-0.52.6 \
		windows_i686_gnu-0.53.1 \
		windows_i686_gnullvm-0.52.6 \
		windows_i686_gnullvm-0.53.1 \
		windows_i686_msvc-0.48.5 \
		windows_i686_msvc-0.52.6 \
		windows_i686_msvc-0.53.1 \
		windows_x86_64_gnu-0.48.5 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnu-0.53.1 \
		windows_x86_64_gnullvm-0.48.5 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_gnullvm-0.53.1 \
		windows_x86_64_msvc-0.48.5 \
		windows_x86_64_msvc-0.52.6 \
		windows_x86_64_msvc-0.53.1 \
		winner_tree-0.1.1 \
		winnow-0.5.40 \
		winnow-0.6.26 \
		winnow-0.7.11 \
		winx-0.36.4 \
		wit-bindgen-0.51.0 \
		wit-bindgen-core-0.51.0 \
		wit-bindgen-rust-0.51.0 \
		wit-bindgen-rust-macro-0.51.0 \
		wit-component-0.244.0 \
		wit-parser-0.244.0 \
		wkt-0.11.1 \
		woothee-0.13.0 \
		writeable-0.6.1 \
		wyz-0.5.1 \
		x509-cert-0.2.5 \
		x509-certificate-0.25.0 \
		xattr-1.5.1 \
		xxhash-rust-0.8.15 \
		yaml-rust-0.4.5 \
		yansi-1.0.1 \
		yoke-0.8.0 \
		yoke-derive-0.8.0 \
		zerocopy-0.8.26 \
		zerocopy-derive-0.8.26 \
		zerofrom-0.1.6 \
		zerofrom-derive-0.1.6 \
		zeroize-1.8.1 \
		zeroize_derive-1.4.2 \
		zerotrie-0.2.2 \
		zerovec-0.11.2 \
		zerovec-derive-0.11.1 \
		zlib-rs-0.6.2 \
		zmij-1.0.12 \
		zstd-0.13.3 \
		zstd-safe-7.2.4 \
		zstd-sys-2.0.15+zstd.1.5.7 \
		catio@git+https://github.com/GreptimeTeam/catio.git?rev=c75be64e7a58f620f6340c24b5b8d76f131af6aa\#c75be64e7a58f620f6340c24b5b8d76f131af6aa \
		rskafka@git+https://github.com/influxdata/rskafka.git?rev=80f42eb15eb9419579a376bdf4411893a7da2728\#80f42eb15eb9419579a376bdf4411893a7da2728 \
		opensrv-mysql@git+https://github.com/GreptimeTeam/opensrv?rev=1f3d88ccaafb5721be6cfcc3ccbca48642426119\#1f3d88ccaafb5721be6cfcc3ccbca48642426119 \
		sqlparser,sqlparser_derive@git+https://github.com/GreptimeTeam/sqlparser-rs.git?rev=9e9019bb1c7040ed956f654e39378dd42ab17884\#9e9019bb1c7040ed956f654e39378dd42ab17884 \
		otel-arrow-rust,otlp-derive,otlp-model@git+https://github.com/GreptimeTeam/otel-arrow?rev=5da284414e9b14f678344b51e5292229e4b5f8d2\#5da284414e9b14f678344b51e5292229e4b5f8d2 \
		memcomparable@git+https://github.com/v0y4g3r/memcomparable.git?rev=d8fb3558aff452cd50c0954f2979121401387f67\#d8fb3558aff452cd50c0954f2979121401387f67 \
		greptime-proto@git+https://github.com/GreptimeTeam/greptime-proto.git?rev=acb247415b8f4c2f0750783dab4e1f38c71f5860\#acb247415b8f4c2f0750783dab4e1f38c71f5860 \
		meter-core,meter-macros@git+https://github.com/GreptimeTeam/greptime-meter.git?rev=f743c3a5fe8c1f57363eac5866c356b7d91f9b39\#f743c3a5fe8c1f57363eac5866c356b7d91f9b39 \
		loki-proto@git+https://github.com/GreptimeTeam/loki-proto.git?rev=f69c8924c4babe516373e26a4118be82d976629c\#f69c8924c4babe516373e26a4118be82d976629c \
		arrow-pg,datafusion-pg-catalog@git+https://github.com/datafusion-contrib/datafusion-postgres.git?rev=ffb14a52b3d7c7489559812e1ec38096f225ce93\#ffb14a52b3d7c7489559812e1ec38096f225ce93 \
		tikv-jemalloc-sys@git+https://github.com/GreptimeTeam/jemallocator?rev=e254a7eaf13a9ede04953ddefd173b5303018530\#e254a7eaf13a9ede04953ddefd173b5303018530 \
		substrait@git+https://github.com/GreptimeTeam/substrait-rs.git?rev=91ec978b0649417ad3da8390e7a515baec723b1b\#91ec978b0649417ad3da8390e7a515baec723b1b \
		object_store_opendal@git+https://github.com/GreptimeTeam/opendal.git?rev=c03e56802b47de3ccfc8fe028e59a459b278a0d2\#c03e56802b47de3ccfc8fe028e59a459b278a0d2 \
		influxdb_line_protocol@git+https://github.com/evenyag/influxdb_iox?branch=feat%2Fline-protocol\#10ef0d0b02705ac7518717390939fa3a9bcfcacc \
		jsonb@git+https://github.com/GreptimeTeam/jsonb?rev=dd1e2341e3df35e9de38959328caa7628e81b6b1\#dd1e2341e3df35e9de38959328caa7628e81b6b1 \
		datafusion,datafusion-catalog,datafusion-catalog-listing,datafusion-common,datafusion-common-runtime,datafusion-datasource,datafusion-datasource-arrow,datafusion-datasource-csv,datafusion-datasource-json,datafusion-datasource-parquet,datafusion-doc,datafusion-execution,datafusion-expr,datafusion-expr-common,datafusion-functions,datafusion-functions-aggregate,datafusion-functions-aggregate-common,datafusion-functions-nested,datafusion-functions-table,datafusion-functions-window,datafusion-functions-window-common,datafusion-macros,datafusion-optimizer,datafusion-physical-expr,datafusion-physical-expr-adapter,datafusion-physical-expr-common,datafusion-physical-optimizer,datafusion-physical-plan,datafusion-proto,datafusion-proto-common,datafusion-proto-models,datafusion-pruning,datafusion-session,datafusion-sql,datafusion-substrait@git+https://github.com/GreptimeTeam/datafusion.git?rev=cc5534492d5408831395609cdafb6520c7d514b7\#cc5534492d5408831395609cdafb6520c7d514b7 \
		sqlness@git+https://github.com/GreptimeTeam/sqlness?rev=cf4c2ae005fb8531a023ea638124ef49f1022025\#cf4c2ae005fb8531a023ea638124ef49f1022025 \
		pprof@git+https://github.com/tikv/pprof-rs?rev=01cff82dbe6fe110a707bf2b38d8ebb1d14a18f8\#01cff82dbe6fe110a707bf2b38d8ebb1d14a18f8

USER=		nobody
GROUP=		nobody

SUB_LIST+=	USER=${USER} GROUP=${GROUP}
PLIST_SUB+=	USER=${USER} GROUP=${GROUP}

PROGS=		greptime

SUBSTRAIT_COMMIT=	2aaae7c0d369a23b5b469badce0644097f1769a1
SUBSTRAIT_VERSION=	0.85.0

DISTFILES+=	opendal-object_store-c03e568.tar.gz \
		substrait-submodule-91ec978.tar.gz

pre-fetch:
	# GitHub's auto-generated tarball for GreptimeTeam/opendal excludes
	# the integrations/ directory via .gitattributes export-ignore, but
	# greptimedb's Cargo.toml patches object_store_opendal from that git
	# revision.  Fetch the missing crate from the same revision and
	# package it as an additional distfile.
	@if [ ! -f ${DISTDIR}/opendal-object_store-c03e568.tar.gz ]; then \
		${MKDIR} ${WRKDIR}/.opendal-fetch && \
		cd ${WRKDIR}/.opendal-fetch && \
		${GIT} clone --quiet --depth 1 \
		    https://github.com/GreptimeTeam/opendal.git \
		    opendal-c03e56802b47de3ccfc8fe028e59a459b278a0d2 && \
		cd opendal-c03e56802b47de3ccfc8fe028e59a459b278a0d2 && \
		${GIT} fetch --quiet --depth 1 origin c03e56802b47de3ccfc8fe028e59a459b278a0d2 && \
		${GIT} checkout --quiet c03e56802b47de3ccfc8fe028e59a459b278a0d2 && \
		cd .. && \
		${TAR} -czf ${DISTDIR}/opendal-object_store-c03e568.tar.gz \
		    opendal-c03e56802b47de3ccfc8fe028e59a459b278a0d2/integrations/object_store && \
		${RM} -rf ${WRKDIR}/.opendal-fetch; \
	fi
	# GitHub's auto-generated tarball for GreptimeTeam/substrait-rs excludes
	# the substrait/ git submodule, but greptimedb's Cargo.toml patches
	# substrait from that git revision.  Fetch the upstream commit as a plain
	# archive (no .git directory), add the submodule files to a crate-shaped
	# tree, and provide a version.in fallback so the build script can run
	# without a git checkout.
	@if [ ! -f ${DISTDIR}/substrait-submodule-91ec978.tar.gz ]; then \
		${MKDIR} ${WRKDIR}/.substrait-fetch && \
		cd ${WRKDIR}/.substrait-fetch && \
		${FETCH_CMD} -o substrait-${SUBSTRAIT_COMMIT}.tar.gz \
		    https://github.com/substrait-io/substrait/archive/${SUBSTRAIT_COMMIT}.tar.gz && \
		${TAR} -xzf substrait-${SUBSTRAIT_COMMIT}.tar.gz && \
		${MV} substrait-${SUBSTRAIT_COMMIT} substrait && \
		${MKDIR} substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b && \
		${MV} substrait substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b/substrait && \
		${MKDIR} substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b/gen && \
		${PRINTF} '%s' '${SUBSTRAIT_VERSION}' > substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b/gen/version && \
		${CP} ${FILESDIR}/substrait-version.in substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b/gen/version.in && \
		${TAR} -czf ${DISTDIR}/substrait-submodule-91ec978.tar.gz \
		    substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b && \
		${RM} -rf ${WRKDIR}/.substrait-fetch; \
	fi

post-patch:
	# setup mold linker wrapper to reduce memory during final linking
	@${CP} ${FILESDIR}/cc-mold.sh ${WRKDIR}/cc-mold
	@${CHMOD} +x ${WRKDIR}/cc-mold
	# fix: disable building test binaries to speed up build (it is killed with signal 9 otherwise due to OOM)
	@${REINPLACE_CMD} -i '' \
		-e '/^[[:space:]]*"tests-fuzz",/d' \
		-e '/^[[:space:]]*"tests\/runner",/d' \
		${WRKSRC}/Cargo.toml
	# fix: fix assert_matches macro usage in Rust nightly
	@${FIND} ${WRKSRC}/src -name "*.rs" -exec ${REINPLACE_CMD} -i '' \
		-e '/^use std::assert_matches::assert_matches;/d' \
		-e 's/assert_matches!/std::assert_matches!/g' {} +
	# fix: add recursion limit to common/datasource
	@${ECHO} '#![recursion_limit = "256"]' > ${WRKSRC}/src/common/datasource/src/lib.rs.new
	@${CAT} ${WRKSRC}/src/common/datasource/src/lib.rs >> ${WRKSRC}/src/common/datasource/src/lib.rs.new
	@${MV} ${WRKSRC}/src/common/datasource/src/lib.rs.new ${WRKSRC}/src/common/datasource/src/lib.rs
	# fix otel-arrow protobuf path
	@${REINPLACE_CMD} -i '' \
		-e 's|format!("{base}/../../proto/opentelemetry-proto").as_str()|format!("{base}/../../../${PORTNAME}-${DISTVERSION}/cargo-crates/opentelemetry-proto-0.32.0/src/proto/opentelemetry-proto").as_str()|' \
		${WRKDIR}/otel-arrow-5da284414e9b14f678344b51e5292229e4b5f8d2/rust/otel-arrow-rust/build.rs
		# fix otel-arrow-rust for opentelemetry-proto 0.32 definitions
		@${PATCH} -d ${WRKDIR}/otel-arrow-5da284414e9b14f678344b51e5292229e4b5f8d2 --forward -p0 -i ${FILESDIR}/extra-otel-arrow-rust-proto-compat
	# fix: trim trailing whitespace from the substrait-rs fallback version file
	@${PATCH} -d ${WRKDIR}/substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b --forward -p0 -i ${FILESDIR}/extra-substrait-rs-build.rs
	# fix: remove any leftover submodule .git directory so the build script
	# uses the version.in fallback instead of trying to run git commands.
	@${RM} -rf ${WRKDIR}/substrait-rs-91ec978b0649417ad3da8390e7a515baec723b1b/substrait/.git

do-install:
	# binaries (workaround for error: found a virtual manifest at `xx` instead of a package manifest)
.for p in ${PROGS}
	${INSTALL_PROGRAM} \
		${WRKDIR}/target/release/${p} \
		${STAGEDIR}${PREFIX}/bin
.endfor
	# config files
	${MKDIR} ${STAGEDIR}${ETCDIR}
.for name in datanode frontend metasrv standalone
	${INSTALL_DATA} ${WRKSRC}/config/${name}.example.toml ${STAGEDIR}${ETCDIR}/${name}.toml.sample
.endfor
	${REINPLACE_CMD} -i '' -e 's|data_home = "/tmp/greptimedb/"|data_home = "/var/db/greptimedb/"|' ${STAGEDIR}${ETCDIR}/*.toml.sample
	# RC script
	${INSTALL_DATA} ${WRKDIR}/greptimedb ${STAGEDIR}/${PREFIX}/etc/rc.d
	# create dirs
	${MKDIR} \
		${STAGEDIR}/var/db/greptimedb \
		${STAGEDIR}/var/log/greptimedb

.include <bsd.port.mk>
