Skip to content

Commit 4cbc95d

Browse files
authored
chore: remove hyperlight-nanvix backend (#88)
Wipes the nanvix backend and every reference to it so the repo reads as if it never existed. - delete src/nanvix_sandbox/ crate (manifest, lib, examples, Justfile, lockfile) - drop the nanvix exclude entry and explanatory comment from root Cargo.toml - drop `mod nanvix` and the `nanvix::build` dependency from the root Justfile - remove the `nanvix-sandbox` job from .github/workflows/ci.yml - strip the Nanvix Sandbox section + TOC entry from README.md - drop the manual-version-bump bullet from RELEASE.md - rename the slide heading and remove the Nanvix guests section in docs/end-user-overview-slides.md - scrub the nanvix entries from the justfile-ci copilot skill notes Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>
1 parent 4f89124 commit 4cbc95d

13 files changed

Lines changed: 4 additions & 4809 deletions

File tree

.copilot/skills/justfile-ci/SKILL.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ This repo uses a **hierarchical Justfile** structure with a matching **GitHub Ac
2020
Justfile (root) ← orchestrates everything
2121
├── mod wasm 'src/wasm_sandbox/Justfile'
2222
├── mod js 'src/javascript_sandbox/Justfile'
23-
├── mod nanvix 'src/nanvix_sandbox/Justfile'
2423
├── mod python 'src/sdk/python/Justfile'
2524
└── mod examples_mod 'examples/Justfile'
2625
```

.copilot/skills/justfile-ci/references/architecture.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Recipe | Delegates to | Purpose |
66
|--------|-------------|---------|
7-
| `build` | `wasm::build`, `jss::build`, `nanvix::build`, `python::build` | Build everything |
7+
| `build` | `wasm::build`, `jss::build`, `python::build` | Build everything |
88
| `test` | `test-rust`, `wasm::test`, `python::python-test` | All tests |
99
| `test-rust` | (direct cargo) | Core crate unit + integration tests |
1010
| `lint` | `lint-rust`, `wasm::lint`, `js::lint`, `python::lint` | All linters |
@@ -21,8 +21,7 @@
2121
ci.yml
2222
├── rust — fmt-check-rust, lint-rust, test-rust
2323
├── wasm-sandbox — wasm build, lint, test, examples + python fmt-check/lint/build/examples/python-test/fuzz/benchmark/integration-examples
24-
├── javascript-sandbox — js build, lint, test, examples
25-
└── nanvix-sandbox — nanvix build (examples skipped pending upstream)
24+
└── javascript-sandbox — js build, lint, test, examples
2625
```
2726

2827
## Subproject Justfile Responsibilities
@@ -39,10 +38,6 @@ ci.yml
3938
- Recipes: `build`, `test`, `examples`, `lint`
4039
- `examples` is a flat recipe listing all `cargo run` commands
4140

42-
### nanvix (`src/nanvix_sandbox/Justfile`)
43-
- Standalone build, excluded from workspace
44-
- Recipes: `build`, `examples` (currently skipped)
45-
4641
### python (`src/sdk/python/Justfile`)
4742
- Manages `uv`, `maturin`, `ruff` tooling
4843
- Recipes: `build`, `fmt`, `fmt-check`, `lint`, `examples`, `python-test`, `python-fuzz`, `python-sandbox-benchmark`, `python-publish`

.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -411,26 +411,3 @@ jobs:
411411

412412
- name: Run examples
413413
run: just js examples
414-
415-
nanvix-sandbox:
416-
name: Nanvix Sandbox · build
417-
runs-on: ubuntu-latest #current linux only
418-
steps:
419-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
420-
421-
- uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
422-
with:
423-
toolchain: nightly
424-
rustflags: ""
425-
426-
- name: Install just
427-
run: cargo install --locked just
428-
429-
- name: Build
430-
run: just nanvix build
431-
432-
# NOTE: nanvix examples are skipped until hyperlight-nanvix updates to
433-
# the new nanvix registry API (qjs/python3 are now separate packages).
434-
# See: https://github.com/hyperlight-dev/hyperlight-nanvix
435-
# - name: Run examples
436-
# run: just nanvix examples

Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ members = [
88
"src/sdk/python/hyperlight_js_backend",
99
"src/sdk/dotnet/ffi",
1010
]
11-
# nanvix_sandbox requires nightly Rust (nanvix uses #![feature(never_type)])
12-
exclude = [
13-
"src/nanvix_sandbox",
14-
]
1511
resolver = "2"
1612

1713
[workspace.package]

Justfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ set unstable := true
22

33
mod wasm 'src/wasm_sandbox/Justfile'
44
mod js 'src/javascript_sandbox/Justfile'
5-
mod nanvix 'src/nanvix_sandbox/Justfile'
65
mod python 'src/sdk/python/Justfile'
76
mod dotnet 'src/sdk/dotnet/Justfile'
87
mod examples_mod 'examples/Justfile'
@@ -14,7 +13,7 @@ clean: wasm::clean python::clean dotnet::clean
1413

1514
#### BUILD TARGETS ####
1615

17-
build target=default-target: (wasm::build target) (js::build target) nanvix::build python::build (dotnet::build target)
16+
build target=default-target: (wasm::build target) (js::build target) python::build (dotnet::build target)
1817

1918
lint: lint-rust wasm::lint js::lint python::lint
2019

README.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Supported backends:
1212

1313
- [Wasm Component Sandbox](#wasm-component-sandbox) (Python/Javascript or provide your own)
1414
- [HyperlightJS Sandbox](#hyperlightjs-sandbox)
15-
- [Nanvix Sandbox](#nanvix-sandbox)
1615

1716
## Overview
1817

@@ -195,35 +194,6 @@ console.log('10 + 20 = ' + sum);
195194

196195
See [examples](./src/javascript_sandbox/examples/) for file I/O and network demos.
197196

198-
### Nanvix Sandbox
199-
200-
A microkernel-based backend built on [hyperlight-nanvix](https://github.com/hyperlight-dev/hyperlight-nanvix) that runs JavaScript or Python inside a Nanvix VM. Currently limited to basic code execution with stdout capture -- no host tools, file I/O, networking, or snapshot support yet.
201-
202-
```rust
203-
use hyperlight_nanvix_sandbox::{NanvixJavaScript, NanvixPython};
204-
use hyperlight_sandbox::Sandbox;
205-
206-
fn main() {
207-
// JavaScript
208-
let mut js = Sandbox::builder()
209-
.guest(NanvixJavaScript)
210-
.build()
211-
.expect("failed to create JS sandbox");
212-
213-
let result = js.run(r#"console.log("Hello from Nanvix JS!");"#).unwrap();
214-
print!("{}", result.stdout);
215-
216-
// Python
217-
let mut py = Sandbox::builder()
218-
.guest(NanvixPython)
219-
.build()
220-
.expect("failed to create Python sandbox");
221-
222-
let result = py.run(r#"print("Hello from Nanvix Python!")"#).unwrap();
223-
print!("{}", result.stdout);
224-
}
225-
```
226-
227197
## Building
228198

229199
Tool requirements:

RELEASE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Bump the version in **all** manifest files. For example, to go from `0.1.0` →
77
### Rust (Cargo)
88

99
- `Cargo.toml``[workspace.package] version`
10-
- `src/nanvix_sandbox/Cargo.toml``[package] version` (excluded from workspace, must be updated manually)
1110

1211
All other workspace member crates inherit the version automatically.
1312

docs/end-user-overview-slides.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,7 @@ result = sandbox.run('console.log(2 + 3)')
111111

112112
---
113113

114-
# Guest Support: Nanvix & Extensibility
115-
116-
## Nanvix guests (Rust API)
117-
118-
```rust
119-
// JavaScript via QuickJS in a Nanvix microkernel
120-
let mut sandbox = SandboxBuilder::new().guest(NanvixJavaScript).build()?;
121-
let result = sandbox.run(r#"console.log("Hello from Nanvix!")"#)?;
122-
123-
// Python via Python in a Nanvix microkernel
124-
let mut sandbox = SandboxBuilder::new().guest(NanvixPython).build()?;
125-
let result = sandbox.run(r#"print("Hello from Nanvix!")"#)?;
126-
```
114+
# Guest Support & Extensibility
127115

128116
## Broader Wasm/WASI guest model
129117

0 commit comments

Comments
 (0)