rust: add doc target to build rust docs

Uses "cargo doc --no-deps" to build the documentation just for
our Suricata package. Without --no-deps, documentation will be
build for all our dependencies as well.

The generated documentation will end up in target/doc as HTML.
pull/5188/head
Jason Ish 5 years ago committed by Victor Julien
parent abc71dc4a5
commit 7ca24041b6

@ -78,3 +78,6 @@ gen/rust-bindings.h:
else
gen/rust-bindings.h:
endif
doc:
CARGO_HOME=$(CARGO_HOME) $(CARGO) doc --all-features --no-deps

Loading…
Cancel
Save