Skip to content

Commit cc13980

Browse files
authored
feat: add json format doc generation and more make cmds (#324)
1 parent 0a8df8f commit cc13980

3 files changed

Lines changed: 30 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ VERIFICATION_TARGETS := \
66
# Disabled:
77
# demo
88

9-
.PHONY: all verify $(VERIFICATION_TARGETS) fmt clean
9+
.PHONY: all verify $(VERIFICATION_TARGETS) fmt clean verus update
1010

1111
$(VERIFICATION_TARGETS):
1212
cargo dv verify --targets $@
@@ -22,6 +22,9 @@ fmt:
2222
doc: verify
2323
cargo dv doc --target ostd
2424

25+
verus update:
26+
cargo dv bootstrap $(if $(filter update,$@),--upgrade,)
27+
2528
clean:
2629
cargo clean
2730
rm -rf doc

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ git submodule update --init --recursive
3232

3333
You can build Verus with the following command:
3434

35+
```
36+
make verus
37+
```
38+
39+
or
40+
3541
```
3642
cargo dv bootstrap
3743
```
@@ -45,6 +51,12 @@ We utilize [our own fork](https://github.com/asterinas/verus) of Verus, which we
4551

4652
To verify the entire project, simply run:
4753

54+
```
55+
make
56+
```
57+
58+
or
59+
4860
```
4961
cargo dv verify --targets ostd
5062
```
@@ -59,6 +71,12 @@ cargo dv compile --targets vstd_extra
5971

6072
`dv` automatically skips recompilation and reverification for libraries that have not changed since the last build. To remove the build artifact of a particular library and force a fresh build, run:
6173

74+
```
75+
make clean
76+
```
77+
78+
or
79+
6280
```
6381
cargo dv clean --targets vstd_extra
6482
```
@@ -69,6 +87,12 @@ You can also run `cargo dv clean` to clean all artifacts at once.
6987

7088
We provide comprehensive API-level documentation that describes the verified APIs along with their auxiliary lemmas. To generate the documentation, run:
7189

90+
```
91+
make doc
92+
```
93+
94+
or
95+
7296
```
7397
cargo dv doc --target ostd
7498
```
@@ -92,6 +116,6 @@ We welcome your contributions!
92116

93117
#### Tips
94118

95-
- During your development process, please frequently run `cargo dv bootstrap --upgrade` to stay up-to-date with the [latest supported version](https://github.com/asterinas/verus) of Verus.
119+
- During your development process, please frequently run `make verus update` or `cargo dv bootstrap --upgrade` to stay up-to-date with the [latest supported version](https://github.com/asterinas/verus) of Verus.
96120
- Format checking is not enforced, but we still recommend formatting your code with `cargo dv fmt --paths path_to_your_file` before submission.
97121
- If you are contributing to Verus, we recommend submitting pull requests to [the official repo](https://github.com/verus-lang/verus) rather than our fork, since we aim to minimize differences between them.

dv

0 commit comments

Comments
 (0)