diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-18 05:10:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-18 05:10:45 +0200 |
| commit | 795e55f1e1ae0294d671a94c7d5ecfc9f13e1ad5 (patch) | |
| tree | 33cb2b5f2669ad9f85e2527bb296d8ac387fc324 | |
| parent | 092f4600bb3c83e52db3c1a777afb26d0b84b80f (diff) | |
| parent | a73afe3b7ec292366d116c4449377020c5066e6a (diff) | |
| download | rust-795e55f1e1ae0294d671a94c7d5ecfc9f13e1ad5.tar.gz rust-795e55f1e1ae0294d671a94c7d5ecfc9f13e1ad5.zip | |
Rollup merge of #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
| -rw-r--r-- | src/doc/rustc/src/platform-support/fuchsia.md | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/doc/rustc/src/platform-support/fuchsia.md b/src/doc/rustc/src/platform-support/fuchsia.md index c526e4d1fa8..8b204949a6e 100644 --- a/src/doc/rustc/src/platform-support/fuchsia.md +++ b/src/doc/rustc/src/platform-support/fuchsia.md @@ -121,7 +121,10 @@ following files inside: **`package/meta/package`** ```json -{"name":"hello_fuchsia","version":0} +{ + "name": "hello_fuchsia", + "version": "0" +} ``` 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} ${SDK_PATH}/tools/${ARCH}/ffx emu start workstation_eng.qemu-${ARCH} --headless ``` -Then, once the emulator has been started: +Once the emulator is running, start a package repository server to serve our +package to the emulator: ```sh -${SDK_PATH}/tools/${ARCH}/ffx target repository register +${SDK_PATH}/tools/${ARCH}/ffx repository server start +``` + +Once the repository server is up and running, register our repository: + +```sh +${SDK_PATH}/tools/${ARCH}/ffx target repository register --repository hello-fuchsia ``` 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 On reruns of the component, the `--recreate` argument may also need to be passed. +```sh +${SDK_PATH}/tools/${ARCH}/ffx component run --recreate fuchsia-pkg://hello-fuchsia/hello_fuchsia#meta/hello_fuchsia.cm +``` + ## Testing ### Running unit tests |
