Skip to content
Open
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
9 changes: 9 additions & 0 deletions Cargo.lock

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

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["src/hyperlight-js", "src/js-host-api", "src/hyperlight-js-runtime"]
members = ["src/hyperlight-js", "src/js-host-api", "src/hyperlight-js-runtime", "src/hyperlight-js-common"]

[workspace.package]
version = "0.2.5"
Expand All @@ -11,10 +11,13 @@ repository = "https://github.com/hyperlight-dev/hyperlight-js"
readme = "README.md"

[workspace.dependencies]
hyperlight-common = { version = "0.15.0", default-features = false }
hyperlight-guest-bin = { version = "0.15.0", features = ["libc"] }
hyperlight-guest = { version = "0.15.0" }
hyperlight-host = { version = "0.15.0", default-features = false }

hyperlight-js = { version = "0.2.5", path = "src/hyperlight-js" }
hyperlight-js-common = { version = "0.2.5", path = "src/hyperlight-js-common" }
hyperlight-js-runtime = { version = "0.2.5", path = "src/hyperlight-js-runtime" }

[profile.dev]
Expand Down
2 changes: 1 addition & 1 deletion docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ When this job is done, a new [GitHub release](https://github.com/hyperlight-dev/

This release contains the benchmark results and the source code for the release along with automatically generated release notes.

In addition the hyperlight-js crates will be published to crates.io. You can verify this by going to the [hyperlight-js page on crates.io](https://crates.io/crates/hyperlight-js) and checking that the new version is listed.
In addition, the hyperlight-js crates will be published to crates.io in dependency order (`hyperlight-js-common` → `hyperlight-js-runtime` → `hyperlight-js`). You can verify this by going to the [hyperlight-js page on crates.io](https://crates.io/crates/hyperlight-js) and checking that the new version is listed.

The npm packages (`@hyperlight-dev/js-host-api` and platform-specific binaries) are also published automatically as part of this workflow. Publishing uses [npm trusted publishing (OIDC)](https://docs.npmjs.com/trusted-publishers) — no `NPM_TOKEN` secret is needed for the `CreateRelease` workflow. Provenance attestations are generated automatically.

Expand Down
18 changes: 18 additions & 0 deletions src/hyperlight-js-common/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "hyperlight-js-common"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true
description = """
Shared constants and binary framing utilities for hyperlight-js.

This crate is `no_std`-compatible (with `alloc`) so it can be used by both
the host-side `hyperlight-js` crate and the guest-side `hyperlight-js-runtime`
crate (which compiles for `x86_64-hyperlight-none`).
"""

[dependencies]
# no_std + alloc only — no std, no serde, no anyhow
Loading
Loading