Skip to content

Commit da622de

Browse files
committed
Test cargo doc on ci
Signed-off-by: Ludvig Liljenberg <[email protected]>
1 parent 91ce24a commit da622de

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ like-ci config=default-target hypervisor="kvm":
143143
just bench-ci main {{config}} {{ if hypervisor == "mshv" { "mshv2" } else if hypervisor == "mshv3" { "mshv3" } else { "kvm" } }}
144144

145145
# runs all tests
146-
test target=default-target features="": (test-unit target features) (test-isolated target features) (test-integration "rust" target features) (test-integration "c" target features) (test-seccomp target features)
146+
test target=default-target features="": (test-unit target features) (test-isolated target features) (test-integration "rust" target features) (test-integration "c" target features) (test-seccomp target features) (test-doc target features)
147147

148148
# runs unit tests
149149
test-unit target=default-target features="":
@@ -218,6 +218,8 @@ test-rust-tracing target=default-target features="":
218218
just build-rust-guests {{ target }}
219219
just move-rust-guests {{ target }}
220220

221+
test-doc target=default-target features="":
222+
cargo test --profile={{ if target == "debug" { "dev" } else { target } }} {{ if features =="" {''} else { "--features " + features } }} --doc
221223
################
222224
### LINTING ####
223225
################

src/hyperlight_host/src/func/utils.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ limitations under the License.
1818
/// up to 32 parameters. This is useful to implement traits on functions
1919
/// for may parameter tuples.
2020
///
21-
/// Usage:
22-
/// ```rust
23-
/// use hyperlight_host::func::for_each_tuple;
21+
/// This is an internal utility macro used within the func module.
2422
///
23+
/// ```ignore
2524
/// macro_rules! my_macro {
2625
/// ([$count:expr] ($($name:ident: $type:ident),*)) => {
2726
/// // $count is the arity of the tuple
@@ -30,7 +29,7 @@ limitations under the License.
3029
/// };
3130
/// }
3231
///
33-
/// for_each_tuple!(impl_host_function);
32+
/// for_each_tuple!(my_macro);
3433
/// ```
3534
macro_rules! for_each_tuple {
3635
(@

0 commit comments

Comments
 (0)