CI: Generate code docs and publish for main

This commit is contained in:
Sophie Herold 2023-01-26 02:27:05 +01:00
parent 8de0b42d9d
commit 3b08851cce
2 changed files with 55 additions and 2 deletions

View file

@ -56,3 +56,15 @@ copy_binary = custom_target(
'@OUTPUT@',
],
)
cargo_doc = custom_target(
'cargo-doc',
build_by_default: false,
build_always_stale: true,
output: 'doc',
console: true,
command: [
cargo, 'doc',
cargo_options + ['--no-deps', '--document-private-items'],
],
)