This commit is contained in:
7482
packages/ruby/ext/kreuzberg_rb/native/Cargo.lock
generated
Normal file
7482
packages/ruby/ext/kreuzberg_rb/native/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
25
packages/ruby/ext/kreuzberg_rb/native/Cargo.toml
generated
Normal file
25
packages/ruby/ext/kreuzberg_rb/native/Cargo.toml
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
[package]
|
||||
name = "kreuzberg-rb"
|
||||
version = "5.0.0-rc.3"
|
||||
edition = "2024"
|
||||
license = "Elastic-2.0"
|
||||
description = "High-performance document intelligence library"
|
||||
readme = false
|
||||
keywords = ["document", "extraction", "ocr", "pdf", "text"]
|
||||
categories = ["text-processing"]
|
||||
|
||||
[package.metadata.cargo-machete]
|
||||
ignored = ["tokio", "async-trait"]
|
||||
|
||||
[lib]
|
||||
name = "kreuzberg_rb"
|
||||
path = "../src/lib.rs"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
async-trait = "0.1"
|
||||
kreuzberg = { version = "5.0.0-rc.3", path = "../../../../../crates/kreuzberg", features = ["full", "pdf", "ocr", "paddle-ocr", "paddle-ocr-types", "layout-detection", "layout-types", "embeddings", "embedding-presets", "chunking", "keywords-yake", "keywords-rake", "language-detection", "html", "tree-sitter", "office", "email", "archives", "stopwords", "auto-rotate", "auto-rotate-types", "tokio-runtime", "api", "mcp", "liter-llm", "quality"] }
|
||||
magnus = "0.8"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
tokio = { version = "1", features = ["rt-multi-thread"] }
|
||||
11
packages/ruby/ext/kreuzberg_rb/native/extconf.rb
generated
Normal file
11
packages/ruby/ext/kreuzberg_rb/native/extconf.rb
generated
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "mkmf"
|
||||
require "rb_sys/mkmf"
|
||||
|
||||
default_profile = ENV.fetch("CARGO_PROFILE", "release")
|
||||
|
||||
create_rust_makefile("kreuzberg_rb") do |config|
|
||||
config.profile = default_profile.to_sym
|
||||
config.ext_dir = "native"
|
||||
end
|
||||
Reference in New Issue
Block a user