Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[workspace]
exclude = ["external/ruqu", "external/rvdna", "examples/OSpipe", "examples/rvf", "crates/micro-hnsw-wasm", "crates/ruvector-hyperbolic-hnsw", "crates/ruvector-hyperbolic-hnsw-wasm", "examples/ruvLLM/esp32", "examples/ruvLLM/esp32-flash", "examples/edge-net", "examples/data", "examples/ruvLLM", "examples/delta-behavior", "crates/rvf", "crates/rvf/*", "crates/rvf/*/*", "examples/rvf-desktop", "crates/mcp-brain-server",
# emergent-time-wasm is a standalone cdylib with its own size-optimized
# `[profile.release]` (opt-level="z") and a `panic = "abort"` profile for a
# tiny wasm; excluded so it does not override the workspace opt-level=3.
"crates/emergent-time-wasm",
# ruvector-postgres is a pgrx-based PostgreSQL extension. Its build script
# requires `$PGRX_HOME` set up via `cargo install cargo-pgrx --version 0.12.9`
# and `cargo pgrx init`, which downloads and builds multiple Postgres
Expand Down
152 changes: 152 additions & 0 deletions crates/emergent-time-wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions crates/emergent-time-wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Standalone (workspace-excluded) cdylib so it can carry its own size-optimized
# `[profile.release]` (opt-level="z") and `crate-type=["cdylib"]` without
# affecting the parent workspace's opt-level=3 native profile. Mirrors the
# crates/rvf/rvf-wasm convention.
[package]
name = "emergent-time-wasm"
version = "0.1.0"
edition = "2021"
description = "WASM bindings for the agentic-time layer of the emergent-time crate: measure an AI agent's internal time and health from state deltas in the browser, on the edge, or in Node."
license = "MIT"
authors = ["Ruvector Team"]
repository = "https://github.com/ruvnet/ruvector"
homepage = "https://github.com/ruvnet/ruvector"
readme = "README.md"
rust-version = "1.77"
categories = ["wasm", "science", "simulation"]
keywords = ["agentic-time", "wasm", "webassembly", "agents", "observability"]

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
# The pure, dependency-free core. Only the agentic-time layer is wrapped.
emergent-time = { path = "../emergent-time" }
# Pinned to match the installed `wasm-bindgen` CLI (0.2.118) so the generated JS
# glue ABI matches exactly and there is no CLI/crate version-skew warning.
wasm-bindgen = "=0.2.118"
# Tiny allocator: ~10x smaller than the default for small wasm modules.
dlmalloc = { version = "0.2", features = ["global"] }

# Size-optimized release profile (mirrors crates/rvf/rvf-wasm).
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
strip = true
panic = "abort"
Loading
Loading