Skip to content

Commit a73afe3

Browse files
committed
Improving Fuchsia rustc support documentation
Improving wording
1 parent 6d3f1be commit a73afe3

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
@@ -127,7 +127,10 @@ following files inside:
127127

128128
**`package/meta/package`**
129129
```json
130-
{"name":"hello_fuchsia","version":0}
130+
{
131+
"name": "hello_fuchsia",
132+
"version": "0"
133+
}
131134
```
132135

133136
The `package` file describes our package's name and version number. Every
@@ -238,10 +241,17 @@ ${SDK_PATH}/tools/${ARCH}/ffx product-bundle get workstation_eng.qemu-${ARCH}
238241
${SDK_PATH}/tools/${ARCH}/ffx emu start workstation_eng.qemu-${ARCH} --headless
239242
```
240243

241-
Then, once the emulator has been started:
244+
Once the emulator is running, start a package repository server to serve our
245+
package to the emulator:
242246

243247
```sh
244-
${SDK_PATH}/tools/${ARCH}/ffx target repository register
248+
${SDK_PATH}/tools/${ARCH}/ffx repository server start
249+
```
250+
251+
Once the repository server is up and running, register our repository:
252+
253+
```sh
254+
${SDK_PATH}/tools/${ARCH}/ffx target repository register --repository hello-fuchsia
245255
```
246256

247257
And watch the logs from the emulator in a separate terminal:
@@ -259,6 +269,10 @@ ${SDK_PATH}/tools/${ARCH}/ffx component run fuchsia-pkg://hello-fuchsia/hello_fu
259269
On reruns of the component, the `--recreate` argument may also need to be
260270
passed.
261271

272+
```sh
273+
${SDK_PATH}/tools/${ARCH}/ffx component run --recreate fuchsia-pkg://hello-fuchsia/hello_fuchsia#meta/hello_fuchsia.cm
274+
```
275+
262276
## Testing
263277

264278
### Running unit tests

0 commit comments

Comments
 (0)