Skip to content

Commit

Permalink
Generate binaryninjacore-sys documentation
Browse files Browse the repository at this point in the history
This should show binaryninjacore-sys alongside binaryninja crate
  • Loading branch information
emesare committed Jan 2, 2025
1 parent ace9ba8 commit 47d55c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions rust/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ file(GLOB RUST_API_SOURCES CONFIGURE_DEPENDS

if(CMAKE_BUILD_TYPE MATCHES Debug)
set(CARGO_CHECK_OPTS --workspace)
set(CARGO_DOC_OPTS --no-deps)
# Documentation for both binaryninja and binaryninjacore-sys crates
set(CARGO_DOC_OPTS --no-deps -p binaryninja -p binaryninjacore-sys)
else()
set(CARGO_CHECK_OPTS --workspace --release)
set(CARGO_DOC_OPTS --no-deps --release)
# Documentation for both binaryninja and binaryninjacore-sys crates
set(CARGO_DOC_OPTS --no-deps --release -p binaryninja -p binaryninjacore-sys)
endif()

if (BN_BUILD_NUMBER)
Expand Down
1 change: 1 addition & 0 deletions rust/binaryninjacore-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
#![allow(non_snake_case)]
#![allow(unused)]
#![allow(clippy::type_complexity)]
#![doc(html_root_url = "https://dev-rust.binary.ninja/")]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
2 changes: 1 addition & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#![allow(clippy::missing_safety_doc)]
#![allow(clippy::result_unit_err)]
#![allow(clippy::type_complexity)]
#![doc(html_root_url = "https://dev-rust.binary.ninja/binaryninja/")]
#![doc(html_root_url = "https://dev-rust.binary.ninja/")]
#![doc(html_favicon_url = "/favicon.ico")]
#![doc(html_logo_url = "/logo.png")]
#![doc(issue_tracker_base_url = "https://github.com/Vector35/binaryninja-api/issues/")]
Expand Down

0 comments on commit 47d55c7

Please sign in to comment.