Skip to content

Commit 0d8d830

Browse files
authored
fix(docs): the RustDev.md url is wrong (#306)
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent cdc2ed1 commit 0d8d830

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

RustDev.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ export WIT_WORLD=$(readlink -f world.wasm)
2828

2929
## `ProtoWasmSandbox` vs `WasmSandbox` vs `LoadedWasmSandbox`
3030

31-
The three primary APIs with which you'll be interacting are [`ProtoWasmSandbox`](./src/hyperlight_wasm/src/proto_wasm_sandbox.rs), [`WasmSandbox`](./src/hyperlight_wasm/src/wasm_sandbox.rs) and [`LoadedWasmSandbox`](./src/hyperlight_wasm//s
32-
rc/loaded_wasm_sandbox.rs). These are three different Rust `struct`s that provide a type-safe way to ensure the current state of the system.
31+
The three primary APIs with which you'll be interacting are [`ProtoWasmSandbox`](./src/hyperlight_wasm/src/sandbox/proto_wasm_sandbox.rs), [`WasmSandbox`](./src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs) and [`LoadedWasmSandbox`](./src/hyperlight_wasm/src/sandbox/loaded_wasm_sandbox.rs). These are three different Rust `struct`s that provide a type-safe way to ensure the current state of the system.
3332

3433
One helpful way to think about these three different types is as a strongly-typed state machine that is enforced by the Rust compiler. This type-safety feature is important because it allows you, the application developer, to detect issues sooner, and without having to write as many tests (because the compiler is doing more checks for you).
3534

@@ -74,7 +73,7 @@ Before you can transition a `ProtoWasmSandbox` to a `WasmSandbox` (and on to a `
7473

7574
In module mode, register host functions with `ProtoWasmSandbox::register_host_func_i`. In this method, the `i` suffix indicates the number of parameters your host function has. Currently a number in the range from `0` to `3` (inclusive) is supported.
7675

77-
Please see an illustration of how to do this in the [hostfunc/main.rs](./src/hyperlight_wasm/examples/hostfunc/main.rs) Rust example.
76+
Please see an illustration of how to do this in the [hostfuncs/main.rs](./src/hyperlight_wasm/examples/hostfuncs/main.rs) Rust example.
7877

7978
#### Parameter and return types
8079

@@ -143,8 +142,8 @@ In the above code snippet, we call a guest function named `my_function` that tak
143142

144143
There are more detailed full examples of calling module exports in
145144
these examples:
146-
- [helloworld/main.rs](./src/hypuncerlight_wasm/examples/helloworld/main.rs)
147-
- [hostfunc/main.rs](./src/hyperlight_wasm/examples/hostfunc/main.rs)
145+
- [helloworld/main.rs](./src/hyperlight_wasm/examples/helloworld/main.rs)
146+
- [hostfuncs/main.rs](./src/hyperlight_wasm/examples/hostfuncs/main.rs)
148147

149148
### Calling WebAssembly component exports with generated bindings
150149

0 commit comments

Comments
 (0)