[package]
edition = "2021"
name = "harn-vm"
version = "0.8.49"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async bytecode virtual machine for the Harn programming language"
homepage = "https://harnlang.com/"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/burin-labs/harn"
[package.metadata.cargo-machete]
ignored = ["md-5"]
[features]
default = []
llm-bench-internals = []
otel = [
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:tracing-opentelemetry",
]
testbench-wasi = [
"dep:wasmtime",
"dep:wasmtime-wasi",
"dep:wat",
"dep:tempfile",
]
vm-bench-internals = []
[lib]
name = "harn_vm"
path = "src/lib.rs"
[[test]]
name = "agent_inbox_e2e"
path = "tests/agent_inbox_e2e.rs"
[[test]]
name = "agent_loop_steering_seams"
path = "tests/agent_loop_steering_seams.rs"
[[test]]
name = "agent_sessions"
path = "tests/agent_sessions.rs"
[[test]]
name = "builtin_registry_alignment"
path = "tests/builtin_registry_alignment.rs"
[[test]]
name = "builtin_signature_text_drift"
path = "tests/builtin_signature_text_drift.rs"
[[test]]
name = "compaction_policy_primitive"
path = "tests/compaction_policy_primitive.rs"
[[test]]
name = "connector_testkit_public_api"
path = "tests/connector_testkit_public_api.rs"
[[test]]
name = "flow_backend"
path = "tests/flow_backend.rs"
[[test]]
name = "github_stdlib_connectors"
path = "tests/github_stdlib_connectors.rs"
[[test]]
name = "mcp_call_budget"
path = "tests/mcp_call_budget.rs"
[[test]]
name = "orchestration_cutover"
path = "tests/orchestration_cutover.rs"
[[test]]
name = "otel_sink_export"
path = "tests/otel_sink_export.rs"
[[test]]
name = "redaction_fixtures"
path = "tests/redaction_fixtures.rs"
[[test]]
name = "runtime_introspection"
path = "tests/runtime_introspection.rs"
[[test]]
name = "sandbox_hardened"
path = "tests/sandbox_hardened.rs"
[[test]]
name = "tool_call_cancellation"
path = "tests/tool_call_cancellation.rs"
[[test]]
name = "tool_ref"
path = "tests/tool_ref.rs"
[[test]]
name = "trajectory_tap"
path = "tests/trajectory_tap.rs"
[[bench]]
name = "callable_vectorcall"
path = "benches/callable_vectorcall.rs"
harness = false
[[bench]]
name = "flow_predicate_union"
path = "benches/flow_predicate_union.rs"
harness = false
[[bench]]
name = "flow_store"
path = "benches/flow_store.rs"
harness = false
[[bench]]
name = "vm_adaptive_inline_cache"
path = "benches/vm_adaptive_inline_cache.rs"
harness = false
[dependencies.aes-gcm]
version = "0.10"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.bincode]
version = "2.0"
features = ["serde"]
[dependencies.blake3]
version = "1"
[dependencies.brotli]
version = "8.0.2"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
[dependencies.chrono-tz]
version = "0.10.4"
[dependencies.croner]
version = "3.0.1"
[dependencies.csv]
version = "1"
[dependencies.data-encoding]
version = "2"
[dependencies.ed25519-dalek]
version = "2"
features = [
"pem",
"pkcs8",
"rand_core",
]
[dependencies.flate2]
version = "1.1.9"
[dependencies.futures]
version = "0.3"
[dependencies.globset]
version = "0.4"
[dependencies.harn-builtin-macros]
version = "0.8"
[dependencies.harn-builtin-meta]
version = "0.8"
[dependencies.harn-builtin-registry]
version = "0.8"
[dependencies.harn-clock]
version = "0.8"
[dependencies.harn-ir]
version = "0.8"
[dependencies.harn-lexer]
version = "0.8"
[dependencies.harn-modules]
version = "0.8"
[dependencies.harn-opcode-macros]
version = "0.8"
[dependencies.harn-parser]
version = "0.8"
[dependencies.harn-stdlib]
version = "0.8"
[dependencies.hex]
version = "0.4"
[dependencies.hkdf]
version = "0.13"
[dependencies.hmac]
version = "0.13"
[dependencies.httpdate]
version = "1"
[dependencies.ignore]
version = "0.4"
[dependencies.ipnet]
version = "2"
[dependencies.jsonwebtoken]
version = "10"
features = [
"use_pem",
"aws_lc_rs",
]
default-features = false
[dependencies.keyring]
version = "3"
features = [
"apple-native",
"windows-native",
"linux-native",
]
[dependencies.libc]
version = "0.2"
[dependencies.linkme]
version = "0.3"
[dependencies.md-5]
version = "0.11"
[dependencies.opentelemetry]
version = "0.31"
optional = true
[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
"http-json",
"reqwest-rustls",
]
optional = true
default-features = false
[dependencies.opentelemetry_sdk]
version = "0.31"
features = [
"rt-tokio",
"experimental_trace_batch_span_processor_with_async_runtime",
]
optional = true
[dependencies.rand]
version = "0.10"
[dependencies.rcgen]
version = "0.14"
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"brotli",
"deflate",
"gzip",
"json",
"multipart",
"rustls-tls",
"zstd",
]
default-features = false
[dependencies.reqwest-eventsource]
version = "0.6"
[dependencies.rusqlite]
version = "0.39"
features = ["bundled"]
[dependencies.rust_decimal]
version = "1"
[dependencies.scraper]
version = "0.27"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.serde_path_to_error]
version = "0.1"
[dependencies.serde_yml]
version = "0.0.12"
[dependencies.sha1]
version = "0.11"
[dependencies.sha2]
version = "0.11"
[dependencies.sha3]
version = "0.12"
[dependencies.sqlx-core]
version = "0.8"
features = [
"_rt-tokio",
"_tls-rustls-aws-lc-rs",
"json",
]
default-features = false
[dependencies.sqlx-postgres]
version = "0.8"
features = [
"json",
"time",
"uuid",
"rust_decimal",
]
default-features = false
[dependencies.subtle]
version = "2.6"
[dependencies.sysinfo]
version = "0.39"
features = [
"system",
"component",
]
default-features = false
[dependencies.tar]
version = "0.4.46"
default-features = false
[dependencies.tempfile]
version = "3"
optional = true
[dependencies.tiktoken-rs]
version = "0.11.0"
[dependencies.time]
version = "0.3"
features = [
"formatting",
"parsing",
"serde",
]
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"sync",
"time",
"test-util",
"process",
"io-util",
"io-std",
"macros",
]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tokio-tungstenite]
version = "0.29"
features = [
"connect",
"rustls-tls-webpki-roots",
]
default-features = false
[dependencies.tokio-util]
version = "0.7"
features = ["io"]
[dependencies.toml]
version = "1.1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-opentelemetry]
version = "0.32"
optional = true
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"json",
"registry",
]
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.unicode-segmentation]
version = "1"
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"serde",
"v4",
"v5",
"v7",
]
[dependencies.walkdir]
version = "2"
[dependencies.wasmtime]
version = "44"
features = [
"cranelift",
"runtime",
]
optional = true
default-features = false
[dependencies.wasmtime-wasi]
version = "44"
features = ["p1"]
optional = true
default-features = false
[dependencies.wat]
version = "1"
optional = true
[dependencies.x25519-dalek]
version = "2"
features = ["static_secrets"]
[dependencies.x509-parser]
version = "0.18.1"
[dependencies.zeroize]
version = "1"
[dependencies.zip]
version = "8"
features = ["deflate-flate2"]
default-features = false
[dependencies.zstd]
version = "0.13.3"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.proptest]
version = "1"
[dev-dependencies.rcgen]
version = "0.14"
[dev-dependencies.rustls]
version = "0.23"
features = ["aws-lc-rs"]
[dev-dependencies.tempfile]
version = "3"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Security_Isolation",
"Win32_Storage_FileSystem",
"Win32_System_JobObjects",
"Win32_System_Pipes",
"Win32_System_Threading",
]
[lints.clippy]
assigning_clones = "allow"
branches_sharing_code = "allow"
case_sensitive_file_extension_comparisons = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
collection_is_never_read = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
elidable_lifetime_names = "allow"
enum_glob_use = "allow"
explicit_iter_loop = "allow"
float_cmp = "allow"
format_collect = "allow"
format_push_string = "allow"
future_not_send = "allow"
if_not_else = "allow"
ignored_unit_patterns = "allow"
implicit_hasher = "allow"
inline_always = "allow"
items_after_statements = "allow"
iter_with_drain = "allow"
large_futures = "allow"
manual_let_else = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_collect = "allow"
needless_continue = "allow"
needless_pass_by_ref_mut = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
range_plus_one = "allow"
redundant_closure_for_method_calls = "allow"
redundant_pub_crate = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
self_only_used_in_recursion = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
single_option_map = "allow"
stable_sort_primitive = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
suboptimal_flops = "allow"
too_long_first_doc_paragraph = "allow"
too_many_lines = "allow"
trait_duplication_in_bounds = "allow"
trivially_copy_pass_by_ref = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
use_self = "allow"
used_underscore_binding = "allow"
useless_let_if_seq = "allow"
wildcard_imports = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1