File tree Expand file tree Collapse file tree 1 file changed +17
-3
lines changed
src/doc/rustc/src/platform-support Expand file tree Collapse file tree 1 file changed +17
-3
lines changed Original file line number Diff line number Diff 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
133136The ` 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
247257And 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
259269On reruns of the component, the ` --recreate ` argument may also need to be
260270passed.
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
You can’t perform that action at this time.
0 commit comments