Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
92 lines (77 loc) · 3.22 KB
/
Copy pathCargo.toml
File metadata and controls
92 lines (77 loc) · 3.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[workspace]
members = ["wasmtime4j-native"]
exclude = ["wasmtime4j-native/fuzz"]
resolver = "2"
# Centralized dependency versions for all workspace members
# Update wasmtime version here - it propagates to all crates
[workspace.dependencies]
# Wasmtime WebAssembly runtime - single source of truth for version
wasmtime = { version = "47.0.2", features = ["component-model", "component-model-async", "component-model-bytes", "async", "call-hook", "coredump", "gc", "cache", "debug", "incremental-cache", "wave"] }
wasmtime-wasi = { version = "47.0.2", features = ["p3"] }
wasmtime-wasi-http = { version = "47.0.2", features = ["p3"] }
# wasi-nn: default features pull in openvino + winml (system-installed).
# We target the ORT-backed ONNX backend so the JVM plugins (Jena / RDF4J)
# can execute the wf_sagegraph_nn guest byte-identically to the Rust
# engines (oxigraph-wf / qlever-wf) which pin the same feature set.
# The `onnx-download` feature (activated at the member level in
# wasmtime4j-native/Cargo.toml) is what actually swaps ort's default
# system-link path for the download-binaries static-link path; see the
# comment there.
wasmtime-wasi-nn = { version = "47.0.2", default-features = false, features = ["onnx"] }
# ort exact-pin is mandatory: wasmtime-wasi-nn 47.0.2 bakes in 2.0.0-rc.10
# and later ort releases have breaking ABI shifts that surface as link-
# time symbol mismatches. Same pin the Rust substrate engines carry.
ort = "=2.0.0-rc.10"
# ort-sys must be pinned separately: wasmtime-wasi-nn depends on ort-sys
# directly with a loose spec, so a fresh CI resolve picks the latest
# matching version and drifts off ort's own ort-sys pin. ort-sys 2.0.0-rc.12
# added a mandatory TLS-feature gate on `download-binaries` that our
# `onnx-download` path activates — with no TLS feature enabled the build
# fails with `compile_error!("... enable exactly one of: tls-rustls, ...")`.
# Pinning to the same rc.10 the local lockfile already resolves keeps the
# ONNX Runtime version stable across local and CI builds without having to
# opt into a specific TLS provider.
ort-sys = "=2.0.0-rc.10"
wasmtime-wasi-config = { version = "47.0.2" }
wasmtime-wast = { version = "47.0.2", features = ["component-model", "component-model-async"] }
# WebAssembly text format parser
wat = "1.0"
wast = "253.0.0"
wasmparser = "0.253"
# JNI support for Java 8-22 compatibility
jni = "0.21.1"
# Async runtime for WASI and other async operations
tokio = { version = "1.35", features = ["full"] }
futures = "0.3"
async-trait = "0.1.89"
# Serialization support for complex data structures
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling
anyhow = "1.0"
thiserror = "2.0"
# Logging
log = "0.4"
env_logger = "0.11"
# Memory management utilities
once_cell = "1.19"
# Advanced threading and lock-free data structures
parking_lot = "0.12"
# Encoding
base64 = "0.22"
# Unix-specific
libc = "0.2"
# RNG core traits (for custom WASI RNG implementations)
rand_core = "0.10"
# Dev dependencies
tempfile = "3.8"
[profile.release]
# Optimize for size and speed in release builds
opt-level = 3
lto = true
codegen-units = 1
panic = "unwind" # Required for catch_unwind to work in JNI
[profile.dev]
# Fast compilation for development
opt-level = 0
debug = true