Skip to content

Commit f069605

Browse files
committed
docs: Add Makefile generation target
Add Makefile target to generate cargo documentation and update README accordingly. Signed-off-by: Carlos Bilbao <[email protected]>
1 parent ca2d04f commit f069605

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ all: svsm.bin
1919
test:
2020
cargo test --target=x86_64-unknown-linux-gnu
2121

22+
doc:
23+
cargo doc --open --document-private-items
24+
2225
utils/gen_meta: utils/gen_meta.c
2326
cc -O3 -Wall -o $@ $<
2427

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ any way:
7676
replacement for the FW when launching QEMU
7777
* Live migration
7878

79+
Documentation
80+
-------------
81+
82+
Coconut-SVSM components are documented using rustdoc, a tool that produces
83+
a user-friendly, browsable website explaining the code's contents. To
84+
generate and open the documentation, simply execute the following command:
85+
86+
```
87+
$ make doc
88+
```
89+
7990
Acknowledgments
8091
---------------
8192

0 commit comments

Comments
 (0)