Skip to content

Commit dfc7f18

Browse files
committed
fix: use rustls embeddings and robust node artifacts
1 parent eee2be9 commit dfc7f18

File tree

3 files changed

+13
-49
lines changed

3 files changed

+13
-49
lines changed

.github/workflows/ci-node.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,18 @@ jobs:
8282
shell: bash
8383
run: |
8484
cd crates/kreuzberg-node
85+
set -euo pipefail
8586
pnpm install
8687
pnpm exec napi build --platform --release --target ${{ matrix.target }}
8788
mkdir -p artifacts
8889
pnpm exec napi artifacts --output-dir ./artifacts
89-
cp artifacts/*.node .
90+
shopt -s nullglob globstar
91+
artifacts=(artifacts/**/*.node)
92+
if [ "${#artifacts[@]}" -eq 0 ]; then
93+
echo "No .node artifacts produced under artifacts/" >&2
94+
exit 1
95+
fi
96+
cp "${artifacts[@]}" .
9097
pnpm exec napi prepublish -t npm --no-gh-release
9198
pnpm pack
9299

Cargo.lock

Lines changed: 2 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/kreuzberg/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "kreuzberg"
33
version = "4.0.0-rc.1"
4-
edition.workspace = true
5-
rust-version.workspace = true
4+
edition = "2024"
5+
rust-version = "1.85"
66
authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
77
description = "High-performance document intelligence library for Rust. Extract text, metadata, and structured data from PDFs, Office documents, images, and 50+ formats with async/sync APIs."
88
license = "MIT"
@@ -112,7 +112,7 @@ ndarray = { version = "0.17.1", optional = true }
112112
kamadak-exif = { version = "0.6.1", optional = true }
113113
whatlang = { version = "0.18.0", optional = true }
114114
text-splitter = { version = "0.28.0", features = ["markdown"], optional = true }
115-
fastembed = { version = "5.3", default-features = false, features = ["hf-hub-native-tls", "ort-download-binaries"], optional = true }
115+
fastembed = { version = "5.3", default-features = false, features = ["hf-hub-rustls-tls", "ort-load-dynamic"], optional = true }
116116
unicode-normalization = { version = "0.1.25", optional = true }
117117
chardetng = { version = "0.1.17", optional = true }
118118
encoding_rs = { version = "0.8.35", optional = true }

0 commit comments

Comments
 (0)