Skip to content

Commit a003ad6

Browse files
authored
Rollup merge of rust-lang#100637 - andrewpollack:fuchsia-docs-adjustments, r=tmandry
Improving Fuchsia rustc support documentation * Adjusting `package/meta/package` to fit current schema * Adding repository server step * Adjusting step to give default repository * Adding "recreate" step for easier step following
2 parents 8283b36 + a73afe3 commit a003ad6

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/doc/rustc/src/platform-support/fuchsia.md

+17-3
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,10 @@ following files inside:
121121

122122
**`package/meta/package`**
123123
```json
124-
{"name":"hello_fuchsia","version":0}
124+
{
125+
"name": "hello_fuchsia",
126+
"version": "0"
127+
}
125128
```
126129

127130
The `package` file describes our package's name and version number. Every
@@ -232,10 +235,17 @@ ${SDK_PATH}/tools/${ARCH}/ffx product-bundle get workstation_eng.qemu-${ARCH}
232235
${SDK_PATH}/tools/${ARCH}/ffx emu start workstation_eng.qemu-${ARCH} --headless
233236
```
234237

235-
Then, once the emulator has been started:
238+
Once the emulator is running, start a package repository server to serve our
239+
package to the emulator:
236240

237241
```sh
238-
${SDK_PATH}/tools/${ARCH}/ffx target repository register
242+
${SDK_PATH}/tools/${ARCH}/ffx repository server start
243+
```
244+
245+
Once the repository server is up and running, register our repository:
246+
247+
```sh
248+
${SDK_PATH}/tools/${ARCH}/ffx target repository register --repository hello-fuchsia
239249
```
240250

241251
And watch the logs from the emulator in a separate terminal:
@@ -253,6 +263,10 @@ ${SDK_PATH}/tools/${ARCH}/ffx component run fuchsia-pkg://hello-fuchsia/hello_fu
253263
On reruns of the component, the `--recreate` argument may also need to be
254264
passed.
255265

266+
```sh
267+
${SDK_PATH}/tools/${ARCH}/ffx component run --recreate fuchsia-pkg://hello-fuchsia/hello_fuchsia#meta/hello_fuchsia.cm
268+
```
269+
256270
## Testing
257271

258272
### Running unit tests

0 commit comments

Comments
 (0)