File tree 1 file changed +17
-3
lines changed
src/doc/rustc/src/platform-support
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,10 @@ following files inside:
127
127
128
128
** ` package/meta/package ` **
129
129
``` json
130
- {"name" :" hello_fuchsia" ,"version" :0 }
130
+ {
131
+ "name" : " hello_fuchsia" ,
132
+ "version" : " 0"
133
+ }
131
134
```
132
135
133
136
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}
238
241
${SDK_PATH} /tools/${ARCH} /ffx emu start workstation_eng.qemu-${ARCH} --headless
239
242
```
240
243
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:
242
246
243
247
``` 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
245
255
```
246
256
247
257
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
259
269
On reruns of the component, the ` --recreate ` argument may also need to be
260
270
passed.
261
271
272
+ ``` sh
273
+ ${SDK_PATH} /tools/${ARCH} /ffx component run --recreate fuchsia-pkg://hello-fuchsia/hello_fuchsia#meta/hello_fuchsia.cm
274
+ ```
275
+
262
276
## Testing
263
277
264
278
### Running unit tests
You can’t perform that action at this time.
0 commit comments