PORTNAME=	lancedb-c
PORTVERSION=	g20260713
PORTREVISION=	1
CATEGORIES=	databases

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	C bindings for LanceDB
WWW=		https://github.com/lancedb/lancedb-c

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/bin/protoc:devel/protobuf
LIB_DEPENDS=	libzstd.so:archivers/zstd

USES=		cargo pkgconfig
USE_LDCONFIG=	yes

USE_GITHUB=	yes
GH_ACCOUNT=	lancedb
GH_PROJECT=	lancedb-c
GH_TAGNAME=	92ea6d5

CARGO_CRATES=	adler2-2.0.1 \
		aes-0.8.4 \
		ahash-0.8.12 \
		aho-corasick-1.1.4 \
		alloc-no-stdlib-2.0.4 \
		alloc-stdlib-0.2.4 \
		allocator-api2-0.2.21 \
		android_system_properties-0.1.5 \
		anstream-1.0.0 \
		anstyle-1.0.14 \
		anstyle-parse-1.0.0 \
		anstyle-query-1.1.5 \
		anstyle-wincon-3.0.11 \
		anyhow-1.0.102 \
		approx-0.5.1 \
		ar_archive_writer-0.5.1 \
		arc-swap-1.9.1 \
		arrayref-0.3.9 \
		arrayvec-0.7.6 \
		arrow-58.3.0 \
		arrow-arith-58.3.0 \
		arrow-array-58.3.0 \
		arrow-buffer-58.3.0 \
		arrow-cast-58.3.0 \
		arrow-csv-58.3.0 \
		arrow-data-58.3.0 \
		arrow-ipc-58.3.0 \
		arrow-json-58.3.0 \
		arrow-ord-58.3.0 \
		arrow-row-58.3.0 \
		arrow-schema-58.3.0 \
		arrow-select-58.3.0 \
		arrow-string-58.3.0 \
		async-channel-2.5.0 \
		async-compression-0.4.42 \
		async-lock-3.4.2 \
		async-recursion-1.1.1 \
		async-trait-0.1.89 \
		async_cell-0.2.3 \
		atoi-2.0.0 \
		atomic-waker-1.1.2 \
		autocfg-1.5.1 \
		aws-config-1.8.18 \
		aws-credential-types-1.2.14 \
		aws-lc-rs-1.17.0 \
		aws-lc-sys-0.41.0 \
		aws-runtime-1.7.5 \
		aws-sdk-sso-1.102.0 \
		aws-sdk-ssooidc-1.104.0 \
		aws-sdk-sts-1.107.0 \
		aws-sigv4-1.4.5 \
		aws-smithy-async-1.2.14 \
		aws-smithy-http-0.63.6 \
		aws-smithy-http-client-1.1.13 \
		aws-smithy-json-0.62.7 \
		aws-smithy-observability-0.2.6 \
		aws-smithy-query-0.60.15 \
		aws-smithy-runtime-1.11.3 \
		aws-smithy-runtime-api-1.12.3 \
		aws-smithy-runtime-api-macros-1.0.0 \
		aws-smithy-schema-0.1.0 \
		aws-smithy-types-1.5.0 \
		aws-smithy-xml-0.60.15 \
		aws-types-1.3.16 \
		axum-0.7.9 \
		axum-core-0.4.5 \
		backon-1.6.0 \
		base64-0.22.1 \
		base64-simd-0.8.0 \
		base64ct-1.8.3 \
		bigdecimal-0.4.10 \
		bitflags-1.3.2 \
		bitflags-2.13.0 \
		bitpacking-0.9.3 \
		bitvec-1.0.1 \
		blake2-0.10.6 \
		blake3-1.8.5 \
		block-buffer-0.10.4 \
		block-buffer-0.12.1 \
		block-padding-0.3.3 \
		brotli-8.0.4 \
		brotli-decompressor-5.0.3 \
		bs58-0.5.1 \
		bstr-1.12.1 \
		bumpalo-3.20.3 \
		bytecheck-0.8.2 \
		bytecheck_derive-0.8.2 \
		bytemuck-1.25.0 \
		byteorder-1.5.0 \
		bytes-1.11.1 \
		bytes-utils-0.1.4 \
		cbc-0.1.2 \
		cc-1.2.64 \
		cedarwood-0.4.6 \
		cfg-if-0.1.10 \
		cfg-if-1.0.4 \
		cfg_aliases-0.2.1 \
		chacha20-0.10.0 \
		chrono-0.4.45 \
		chrono-tz-0.10.4 \
		cipher-0.4.4 \
		clap-4.6.1 \
		clap_builder-4.6.0 \
		clap_derive-4.6.1 \
		clap_lex-1.1.0 \
		cmake-0.1.58 \
		cmov-0.5.4 \
		colorchoice-1.0.5 \
		colored-3.1.1 \
		combine-4.6.7 \
		comfy-table-7.2.2 \
		compression-codecs-0.4.38 \
		compression-core-0.4.32 \
		concurrent-queue-2.5.0 \
		const-oid-0.9.6 \
		const-oid-0.10.2 \
		const-random-0.1.18 \
		const-random-macro-0.1.16 \
		const-str-1.1.0 \
		const_panic-0.2.15 \
		constant_time_eq-0.4.2 \
		core-foundation-0.9.4 \
		core-foundation-0.10.1 \
		core-foundation-sys-0.8.7 \
		countio-0.3.0 \
		cpufeatures-0.2.17 \
		cpufeatures-0.3.0 \
		crc32c-0.6.8 \
		crc32fast-1.5.0 \
		crossbeam-channel-0.5.15 \
		crossbeam-deque-0.8.6 \
		crossbeam-epoch-0.9.18 \
		crossbeam-queue-0.3.12 \
		crossbeam-skiplist-0.1.3 \
		crossbeam-utils-0.8.21 \
		crunchy-0.2.4 \
		crypto-common-0.1.7 \
		crypto-common-0.2.2 \
		csv-1.4.0 \
		csv-core-0.1.13 \
		ctor-0.6.3 \
		ctor-proc-macro-0.0.7 \
		ctutils-0.4.2 \
		daachorse-2.1.1 \
		darling-0.20.11 \
		darling-0.23.0 \
		darling_core-0.20.11 \
		darling_core-0.23.0 \
		darling_macro-0.20.11 \
		darling_macro-0.23.0 \
		dashmap-6.2.1 \
		datafusion-53.1.0 \
		datafusion-catalog-53.1.0 \
		datafusion-catalog-listing-53.1.0 \
		datafusion-common-53.1.0 \
		datafusion-common-runtime-53.1.0 \
		datafusion-datasource-53.1.0 \
		datafusion-datasource-arrow-53.1.0 \
		datafusion-datasource-csv-53.1.0 \
		datafusion-datasource-json-53.1.0 \
		datafusion-doc-53.1.0 \
		datafusion-execution-53.1.0 \
		datafusion-expr-53.1.0 \
		datafusion-expr-common-53.1.0 \
		datafusion-functions-53.1.0 \
		datafusion-functions-aggregate-53.1.0 \
		datafusion-functions-aggregate-common-53.1.0 \
		datafusion-functions-json-0.53.1 \
		datafusion-functions-nested-53.1.0 \
		datafusion-functions-table-53.1.0 \
		datafusion-functions-window-53.1.0 \
		datafusion-functions-window-common-53.1.0 \
		datafusion-macros-53.1.0 \
		datafusion-optimizer-53.1.0 \
		datafusion-physical-expr-53.1.0 \
		datafusion-physical-expr-adapter-53.1.0 \
		datafusion-physical-expr-common-53.1.0 \
		datafusion-physical-optimizer-53.1.0 \
		datafusion-physical-plan-53.1.0 \
		datafusion-pruning-53.1.0 \
		datafusion-session-53.1.0 \
		datafusion-sql-53.1.0 \
		deepsize-0.2.0 \
		deepsize_derive-0.1.2 \
		der-0.7.10 \
		deranged-0.5.8 \
		derive_builder-0.20.2 \
		derive_builder_core-0.20.2 \
		derive_builder_macro-0.20.2 \
		digest-0.10.7 \
		digest-0.11.3 \
		dirs-6.0.0 \
		dirs-sys-0.5.0 \
		displaydoc-0.2.6 \
		dlv-list-0.5.2 \
		dtor-0.1.1 \
		dtor-proc-macro-0.0.6 \
		dunce-1.0.5 \
		dyn-clone-1.0.20 \
		earcutr-0.4.3 \
		either-1.16.0 \
		encoding_rs-0.8.35 \
		encoding_rs_io-0.1.7 \
		equivalent-1.0.2 \
		errno-0.3.14 \
		ethnum-1.5.3 \
		event-listener-5.4.1 \
		event-listener-strategy-0.5.4 \
		fast-float2-0.2.3 \
		fastrand-2.4.1 \
		find-msvc-tools-0.1.9 \
		fixedbitset-0.5.7 \
		flatbuffers-25.12.19 \
		flate2-1.1.9 \
		float_next_after-1.0.0 \
		fnv-1.0.7 \
		foldhash-0.1.5 \
		foldhash-0.2.0 \
		form_urlencoded-1.2.2 \
		fs_extra-1.3.0 \
		fsst-7.0.0 \
		fst-0.4.7 \
		funty-2.0.0 \
		futures-0.3.32 \
		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 \
		gearhash-0.1.3 \
		generator-0.8.9 \
		generic-array-0.14.7 \
		geo-0.31.0 \
		geo-traits-0.3.0 \
		geo-types-0.7.19 \
		geoarrow-array-0.8.0 \
		geoarrow-expr-geo-0.8.0 \
		geoarrow-schema-0.8.0 \
		geodatafusion-0.4.0 \
		geographiclib-rs-0.2.7 \
		geohash-0.13.2 \
		getrandom-0.2.17 \
		getrandom-0.3.4 \
		getrandom-0.4.2 \
		git-version-0.3.9 \
		git-version-macro-0.3.9 \
		glob-0.3.3 \
		gloo-timers-0.3.0 \
		h2-0.4.15 \
		half-2.7.1 \
		hash32-0.3.1 \
		hashbrown-0.12.3 \
		hashbrown-0.14.5 \
		hashbrown-0.15.5 \
		hashbrown-0.16.1 \
		hashbrown-0.17.1 \
		heapify-0.2.0 \
		heapless-0.8.0 \
		heck-0.5.0 \
		hermit-abi-0.5.2 \
		hex-0.4.3 \
		hf-xet-1.5.2 \
		hmac-0.12.1 \
		hmac-0.13.0 \
		http-0.2.12 \
		http-1.4.2 \
		http-body-0.4.6 \
		http-body-1.0.1 \
		http-body-util-0.1.3 \
		httparse-1.10.1 \
		httpdate-1.0.3 \
		humantime-2.3.0 \
		hybrid-array-0.4.12 \
		hyper-1.10.1 \
		hyper-rustls-0.27.9 \
		hyper-util-0.1.20 \
		hyperloglogplus-0.4.1 \
		i_float-1.15.0 \
		i_key_sort-0.6.0 \
		i_overlay-4.0.7 \
		i_shape-1.14.0 \
		i_tree-0.16.0 \
		iana-time-zone-0.1.65 \
		iana-time-zone-haiku-0.1.2 \
		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 \
		ident_case-1.0.1 \
		idna-1.1.0 \
		idna_adapter-1.2.2 \
		indexmap-1.9.3 \
		indexmap-2.14.0 \
		inout-0.1.4 \
		io-uring-0.7.12 \
		ipnet-2.12.0 \
		is_terminal_polyfill-1.70.2 \
		itertools-0.11.0 \
		itertools-0.13.0 \
		itertools-0.14.0 \
		itoa-1.0.18 \
		jieba-macros-0.9.0 \
		jieba-rs-0.9.0 \
		jiff-0.2.28 \
		jiff-static-0.2.28 \
		jiff-tzdb-0.1.6 \
		jiff-tzdb-platform-0.1.3 \
		jiter-0.13.0 \
		jni-0.22.4 \
		jni-macros-0.22.4 \
		jni-sys-0.4.1 \
		jni-sys-macros-0.4.1 \
		jobserver-0.1.34 \
		js-sys-0.3.102 \
		jsonb-0.5.6 \
		kanaria-0.2.0 \
		konst-0.4.3 \
		konst_proc_macros-0.4.1 \
		lance-7.0.0 \
		lance-arrow-7.0.0 \
		lance-bitpacking-7.0.0 \
		lance-core-7.0.0 \
		lance-datafusion-7.0.0 \
		lance-datagen-7.0.0 \
		lance-encoding-7.0.0 \
		lance-file-7.0.0 \
		lance-geo-7.0.0 \
		lance-index-7.0.0 \
		lance-io-7.0.0 \
		lance-linalg-7.0.0 \
		lance-namespace-7.0.0 \
		lance-namespace-impls-7.0.0 \
		lance-namespace-reqwest-client-0.7.7 \
		lance-table-7.0.0 \
		lance-testing-7.0.0 \
		lance-tokenizer-7.0.0 \
		lancedb-0.30.0 \
		lazy_static-1.5.0 \
		leb128fmt-0.1.0 \
		lexical-core-1.0.6 \
		lexical-parse-float-1.0.6 \
		lexical-parse-integer-1.0.6 \
		lexical-util-1.0.7 \
		lexical-write-float-1.0.6 \
		lexical-write-integer-1.0.6 \
		libc-0.2.186 \
		libm-0.2.16 \
		libredox-0.1.17 \
		lindera-3.0.7 \
		lindera-dictionary-3.0.7 \
		linux-raw-sys-0.12.1 \
		litemap-0.8.2 \
		lock_api-0.4.14 \
		log-0.4.32 \
		loom-0.7.2 \
		lru-slab-0.1.2 \
		lz4-1.28.1 \
		lz4-sys-1.11.1+lz4-1.10.0 \
		lz4_flex-0.13.1 \
		matchers-0.2.0 \
		matchit-0.7.3 \
		matrixmultiply-0.3.10 \
		md-5-0.10.6 \
		mea-0.6.4 \
		memchr-2.8.2 \
		memmap2-0.9.10 \
		mime-0.3.17 \
		mime_guess-2.0.5 \
		miniz_oxide-0.8.9 \
		mio-1.2.1 \
		moka-0.12.15 \
		more-asserts-0.3.1 \
		multimap-0.10.1 \
		munge-0.4.7 \
		munge_macro-0.4.7 \
		ndarray-0.16.1 \
		nom-8.0.0 \
		ntapi-0.4.3 \
		nu-ansi-term-0.50.3 \
		num-bigint-0.4.6 \
		num-bigint-dig-0.8.6 \
		num-complex-0.4.6 \
		num-conv-0.2.2 \
		num-integer-0.1.46 \
		num-iter-0.1.45 \
		num-traits-0.2.19 \
		num_cpus-1.17.0 \
		num_enum-0.7.6 \
		num_enum_derive-0.7.6 \
		objc2-core-foundation-0.3.2 \
		objc2-io-kit-0.3.2 \
		objc2-system-configuration-0.3.2 \
		object-0.37.3 \
		object_store-0.13.2 \
		object_store_opendal-0.56.0 \
		once_cell-1.21.4 \
		once_cell_polyfill-1.70.2 \
		oneshot-0.1.13 \
		opendal-0.56.0 \
		opendal-core-0.56.0 \
		opendal-layer-concurrent-limit-0.56.0 \
		opendal-layer-logging-0.56.0 \
		opendal-layer-retry-0.56.0 \
		opendal-layer-timeout-0.56.0 \
		opendal-service-azblob-0.56.0 \
		opendal-service-azdls-0.56.0 \
		opendal-service-azure-common-0.56.0 \
		opendal-service-cos-0.56.0 \
		opendal-service-gcs-0.56.0 \
		opendal-service-hf-0.56.0 \
		opendal-service-oss-0.56.0 \
		opendal-service-s3-0.56.0 \
		openssl-probe-0.2.1 \
		option-ext-0.2.0 \
		ordered-float-5.3.0 \
		ordered-multimap-0.7.3 \
		os_str_bytes-6.6.1 \
		outref-0.5.2 \
		parking-2.2.1 \
		parking_lot-0.12.5 \
		parking_lot_core-0.9.12 \
		paste-1.0.15 \
		path_abs-0.5.1 \
		pbkdf2-0.12.2 \
		pem-3.0.6 \
		pem-rfc7468-0.7.0 \
		percent-encoding-2.3.2 \
		permutation-0.4.1 \
		petgraph-0.8.3 \
		phf-0.12.1 \
		phf-0.13.1 \
		phf_codegen-0.13.1 \
		phf_generator-0.13.1 \
		phf_shared-0.12.1 \
		phf_shared-0.13.1 \
		pin-project-1.1.13 \
		pin-project-internal-1.1.13 \
		pin-project-lite-0.2.17 \
		pin-utils-0.1.0 \
		pkcs1-0.7.5 \
		pkcs5-0.7.1 \
		pkcs8-0.10.2 \
		pkg-config-0.3.33 \
		portable-atomic-1.13.1 \
		portable-atomic-util-0.2.7 \
		potential_utf-0.1.5 \
		powerfmt-0.2.0 \
		ppv-lite86-0.2.21 \
		prettyplease-0.2.37 \
		proc-macro-crate-3.5.0 \
		proc-macro2-1.0.106 \
		prost-0.14.4 \
		prost-build-0.14.4 \
		prost-derive-0.14.4 \
		prost-types-0.14.4 \
		psm-0.1.31 \
		ptr_meta-0.3.1 \
		ptr_meta_derive-0.3.1 \
		pyo3-0.28.3 \
		pyo3-build-config-0.28.3 \
		pyo3-ffi-0.28.3 \
		pyo3-macros-0.28.3 \
		pyo3-macros-backend-0.28.3 \
		quick-xml-0.38.4 \
		quick-xml-0.39.4 \
		quick-xml-0.40.1 \
		quinn-0.11.9 \
		quinn-proto-0.11.14 \
		quinn-udp-0.5.14 \
		quote-1.0.45 \
		r-efi-5.3.0 \
		r-efi-6.0.0 \
		radium-0.7.0 \
		rancor-0.1.1 \
		rand-0.8.6 \
		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.5 \
		rand_core-0.10.1 \
		rand_distr-0.5.1 \
		rand_xoshiro-0.7.0 \
		random_word-0.5.2 \
		rangemap-1.7.1 \
		rawpointer-0.2.1 \
		rayon-1.12.0 \
		rayon-core-1.13.0 \
		redb-3.1.3 \
		redox_syscall-0.5.18 \
		redox_users-0.5.2 \
		ref-cast-1.0.25 \
		ref-cast-impl-1.0.25 \
		regex-1.12.4 \
		regex-automata-0.4.14 \
		regex-lite-0.1.9 \
		regex-syntax-0.8.11 \
		rend-0.5.3 \
		reqsign-aliyun-oss-3.1.0 \
		reqsign-aws-v4-3.0.1 \
		reqsign-azure-storage-3.0.1 \
		reqsign-core-3.0.1 \
		reqsign-file-read-tokio-3.0.1 \
		reqsign-google-3.0.1 \
		reqsign-tencent-cos-3.0.1 \
		reqwest-0.12.28 \
		reqwest-0.13.4 \
		reqwest-middleware-0.5.2 \
		ring-0.17.14 \
		rkyv-0.8.16 \
		rkyv_derive-0.8.16 \
		roaring-0.11.4 \
		robust-1.2.0 \
		rsa-0.9.10 \
		rstar-0.12.2 \
		rust-ini-0.21.3 \
		rust-stemmers-1.2.0 \
		rustc-hash-2.1.2 \
		rustc_version-0.4.1 \
		rustix-1.1.4 \
		rustls-0.23.40 \
		rustls-native-certs-0.8.4 \
		rustls-pki-types-1.14.1 \
		rustls-platform-verifier-0.7.0 \
		rustls-platform-verifier-android-0.1.1 \
		rustls-webpki-0.103.13 \
		rustversion-1.0.22 \
		ryu-1.0.23 \
		safe-transmute-0.11.3 \
		salsa20-0.10.2 \
		same-file-1.0.6 \
		schannel-0.1.29 \
		schemars-0.9.0 \
		schemars-1.2.1 \
		scoped-tls-1.0.1 \
		scopeguard-1.2.0 \
		scrypt-0.11.0 \
		security-framework-3.7.0 \
		security-framework-sys-2.17.0 \
		semver-1.0.28 \
		seq-macro-0.3.6 \
		serde-1.0.228 \
		serde_core-1.0.228 \
		serde_derive-1.0.228 \
		serde_json-1.0.150 \
		serde_path_to_error-0.1.20 \
		serde_repr-0.1.20 \
		serde_urlencoded-0.7.1 \
		serde_with-3.21.0 \
		serde_with_macros-3.21.0 \
		serde_yaml_ng-0.10.0 \
		sha1-0.10.6 \
		sha1-0.11.0 \
		sha2-0.10.9 \
		sha2-0.11.0 \
		sha2-asm-0.6.4 \
		sharded-slab-0.1.7 \
		shellexpand-3.1.2 \
		shlex-2.0.1 \
		signal-hook-registry-1.4.8 \
		signature-2.2.0 \
		simd-adler32-0.3.9 \
		simd_cesu8-1.1.1 \
		simdutf8-0.1.5 \
		siphasher-1.0.3 \
		slab-0.4.12 \
		smallvec-1.15.2 \
		snafu-0.8.9 \
		snafu-0.9.1 \
		snafu-derive-0.8.9 \
		snafu-derive-0.9.1 \
		socket2-0.6.4 \
		spade-2.15.1 \
		spin-0.9.8 \
		spki-0.7.3 \
		sqlparser-0.61.0 \
		sqlparser_derive-0.5.0 \
		stable_deref_trait-1.2.1 \
		stacker-0.1.24 \
		static_assertions-1.1.0 \
		statrs-0.18.0 \
		std_prelude-0.2.12 \
		stfu8-0.2.7 \
		strsim-0.11.1 \
		strum-0.26.3 \
		strum-0.28.0 \
		strum_macros-0.26.4 \
		strum_macros-0.28.0 \
		subtle-2.6.1 \
		symlink-0.1.0 \
		syn-1.0.109 \
		syn-2.0.118 \
		sync_wrapper-1.0.2 \
		synstructure-0.13.2 \
		sysinfo-0.38.4 \
		system-configuration-0.7.0 \
		system-configuration-sys-0.6.0 \
		tagptr-0.2.0 \
		tap-1.0.1 \
		target-lexicon-0.13.5 \
		tempfile-3.27.0 \
		thiserror-1.0.69 \
		thiserror-2.0.18 \
		thiserror-impl-1.0.69 \
		thiserror-impl-2.0.18 \
		thread-tree-0.3.3 \
		thread_local-1.1.9 \
		time-0.3.49 \
		time-core-0.1.9 \
		time-macros-0.2.29 \
		tiny-keccak-2.0.2 \
		tinystr-0.8.3 \
		tinyvec-1.11.0 \
		tinyvec_macros-0.1.1 \
		tokio-1.52.3 \
		tokio-macros-2.7.0 \
		tokio-retry-0.3.2 \
		tokio-rustls-0.26.4 \
		tokio-stream-0.1.18 \
		tokio-util-0.7.18 \
		toml_datetime-1.1.1+spec-1.1.0 \
		toml_edit-0.25.12+spec-1.1.0 \
		toml_parser-1.1.2+spec-1.1.0 \
		tower-0.5.3 \
		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-serde-0.2.0 \
		tracing-subscriber-0.3.23 \
		try-lock-0.2.5 \
		twox-hash-2.1.2 \
		typenum-1.20.1 \
		typewit-1.15.2 \
		unicase-2.9.0 \
		unicode-blocks-0.1.9 \
		unicode-ident-1.0.24 \
		unicode-normalization-0.1.25 \
		unicode-segmentation-1.13.3 \
		unicode-width-0.2.2 \
		unicode-xid-0.2.6 \
		unsafe-libyaml-0.2.11 \
		untrusted-0.9.0 \
		url-2.5.8 \
		urlencoding-2.1.3 \
		utf8-ranges-1.0.5 \
		utf8_iter-1.0.4 \
		utf8parse-0.2.2 \
		uuid-1.23.3 \
		valuable-0.1.1 \
		version_check-0.9.5 \
		vsimd-0.8.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.4+wasi-0.2.12 \
		wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06 \
		wasite-1.0.2 \
		wasm-bindgen-0.2.125 \
		wasm-bindgen-futures-0.4.75 \
		wasm-bindgen-macro-0.2.125 \
		wasm-bindgen-macro-support-0.2.125 \
		wasm-bindgen-shared-0.2.125 \
		wasm-encoder-0.244.0 \
		wasm-metadata-0.244.0 \
		wasm-streams-0.4.2 \
		wasm-streams-0.5.0 \
		wasmparser-0.244.0 \
		web-sys-0.3.102 \
		web-time-1.1.0 \
		webpki-root-certs-1.0.8 \
		whoami-2.1.2 \
		winapi-0.3.9 \
		winapi-i686-pc-windows-gnu-0.4.0 \
		winapi-util-0.1.11 \
		winapi-x86_64-pc-windows-gnu-0.4.0 \
		windows-0.62.2 \
		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-registry-0.6.1 \
		windows-result-0.4.1 \
		windows-strings-0.5.1 \
		windows-sys-0.52.0 \
		windows-sys-0.60.2 \
		windows-sys-0.61.2 \
		windows-targets-0.52.6 \
		windows-targets-0.53.5 \
		windows-threading-0.2.1 \
		windows_aarch64_gnullvm-0.52.6 \
		windows_aarch64_gnullvm-0.53.1 \
		windows_aarch64_msvc-0.52.6 \
		windows_aarch64_msvc-0.53.1 \
		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.52.6 \
		windows_i686_msvc-0.53.1 \
		windows_x86_64_gnu-0.52.6 \
		windows_x86_64_gnu-0.53.1 \
		windows_x86_64_gnullvm-0.52.6 \
		windows_x86_64_gnullvm-0.53.1 \
		windows_x86_64_msvc-0.52.6 \
		windows_x86_64_msvc-0.53.1 \
		winnow-1.0.3 \
		wit-bindgen-0.51.0 \
		wit-bindgen-0.57.1 \
		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 \
		wkb-0.9.2 \
		wkt-0.14.0 \
		writeable-0.6.3 \
		wyz-0.5.1 \
		xet-client-1.5.2 \
		xet-core-structures-1.5.2 \
		xet-data-1.5.2 \
		xet-runtime-1.5.2 \
		xmlparser-0.13.6 \
		xxhash-rust-0.8.15 \
		yoke-0.8.3 \
		yoke-derive-0.8.2 \
		zerocopy-0.8.52 \
		zerocopy-derive-0.8.52 \
		zerofrom-0.1.8 \
		zerofrom-derive-0.1.7 \
		zeroize-1.9.0 \
		zerotrie-0.2.4 \
		zerovec-0.11.6 \
		zerovec-derive-0.11.3 \
		zmij-1.0.21 \
		zstd-0.13.3 \
		zstd-safe-7.2.4 \
		zstd-sys-2.0.16+zstd.1.5.7

CARGO_INSTALL=	no

PLIST_FILES=	include/lancedb.h \
		lib/liblancedb.so

do-install:
	${INSTALL_DATA} ${WRKSRC}/include/lancedb.h ${STAGEDIR}${PREFIX}/include
	${INSTALL_LIB} ${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/release/liblancedb.so ${STAGEDIR}${PREFIX}/lib

do-test:
	@${ECHO} "==> Compile lancedb C++ testcase"
	@${CXX} \
		-std=c++20 -Wall -Wextra ${CXXFLAGS} \
		-I${STAGEDIR}${PREFIX}/include \
		$$(pkg-config --cflags arrow) \
		-o ${WRKDIR}/test_lancedb \
		${FILESDIR}/example.cpp \
		-L${STAGEDIR}${PREFIX}/lib -llancedb \
		$$(pkg-config --libs arrow) \
		-Wl,-rpath,${STAGEDIR}${PREFIX}/lib
	@${ECHO} "==> Run lancedb C++ testcase"
	@${WRKDIR}/test_lancedb

.include <bsd.port.mk>
