* Initial attempt at a Rust AMQP stack, merged against feature/rust_amqp for now. (#5942) * Enabled building AMQP *without* uAMQP * Start integrating Rust AMQP Value to C++ AMQP Value * AMQP Value tests now pass * Moved AmqpValueType ostream inserter to its original location * Added Rust AMQP Message implementation * Added start of message source tests * Enabled building AMQP *without* uAMQP * Start integrating Rust AMQP Value to C++ AMQP Value * Moved AmqpValueType ostream inserter to its original location * Message target support * Message source and target support * Add connection support; restructured tests to fail on RUST AMQP rather than attempting to run; removed some uAMQP-only features (#5986) * Checkpoint of connection logic * Started implementing Rust based Connection by pulling out uAMQP artifacts * Implemented AMQP Connection in Rust; started API surface refactoring for Rust APIs; Refactored tests to remove some uAMQP only elements. * Don't leak runtime context on calls * Refactor AMQP logic to better isolate rust AMQP code from uAMQP code. (#6008) * refactor uAMQP and Rust AMQP into separate implementations for ease of use * Add connection support; restructured tests to fail on RUST AMQP rather than attempting to run; removed some uAMQP-only features (#5986) * Checkpoint of connection logic * Started implementing Rust based Connection by pulling out uAMQP artifacts * Implemented AMQP Connection in Rust; started API surface refactoring for Rust APIs; Refactored tests to remove some uAMQP only elements. * Don't leak runtime context on calls * export UUID from AMQP * Cleaned up some more elements; reduced scope of doxygen significantly * runtime context needs to be process global not thread global; all tests pass or fail at this point * Merged main into branch * Implement AMQP Session APIs in Rust. (#6033) * Checkpoint of rust session support * Session begin/end now works * Session tests pass * Removed accidental regression * Added rust per-call context (#6043) * Reworked runtime context to be call context * Added context parameter to blocking AMQP calls * Added comments around the lifetime of the RustRuntimeContext captured in the CallContext object * uAMQP changes corresponding to Rust changes Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> * sync rust SDK fixes to C++ --------- Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> * Enable Rust ClaimsBasedSecurity interoperability; Converted EventHubs producer client to work with Rust AMQP changes. (#6059) * canonicalized return values; initial CBS support * Implementation of CBS for C++ * Amqp Authentication works; Integrate Rust AMQP into Eventhubs Producer client * Implemented Rust AMQP message sender. (#6083) * Initial sender implementation * PR feedback * Management APIs work (#6096) * Management APIs work --------- Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> * Converted builders to be compliant with Rust guidelines. (#6102) * Converted builders to be compliant with Rust guidelines. * Bring rust changes back to C++ repo * Improved builder developer experience * Removed builders from AMQP layer to conform to Rust guidelines; Fixed AMQP bug in message sender tests (#6208) * Removed builders from AMQP layer to conform to Rust guidelines; Fixed AMQP related bug in message sender tests * Pr feedback * Implement receiving messages; Changes to eventhubs so that all eventhubs tests pass (#6254) * Eventhubs tests pass * Noise reduction; explain the task which spawns a task * Update sdk/eventhubs/azure-messaging-eventhubs/src/producer_client.cpp Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> * PR feedback --------- Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> * Integrate Rust 2 step message receive code to C++ (#6349) * Integrate Rust 2 step message receive code to C++ * If receiving a delivery failed, transmit the error to the message channel if at all possible * Enable Rust based AMQP by default (#6362) * AMQP tests now pass; Integrate TestAmqpBroker with CI pipeline * Updated changelogs to reflect API changes made during AMQP updates * Replace uAMQP with Rust AMQP as the default AMQP transport; Updated build configurationj to reflect that * Test fixes * PR feedback; test fixes * Fixed uninitialized variable tanking some tests (#6381) * Fixed uninitialized variable tanking some tests * Fixed Rust AMQP tests * Removed connection string support from Eventhubs and EH tests. (#6391) * Removed the ability to use connection strings from EventHubs * Enable Rust AMQP by default!!! * Update CMakePresets.json Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> --------- Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
72 lines
2.9 KiB
CMake
72 lines
2.9 KiB
CMake
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
#
|
|
# Creates custom targets for documentation generation if
|
|
# BUILD_DOCUMENTATION == YES
|
|
# Usage: generate_documentation(azure-core 1.0.0-preview.1)
|
|
# Requires: Doxygen
|
|
# Target name in the form of ${PROJECT_NAME}-docs (e.g. azure-core-docs)
|
|
# Note that PROJECT_NAME is also the directory containing the package.
|
|
function(generate_documentation PROJECT_NAME PROJECT_VERSION)
|
|
if(BUILD_DOCUMENTATION)
|
|
find_package(Doxygen 1.9.7 REQUIRED doxygen)
|
|
|
|
set(DOXYGEN_PROJECT_NAME ${PROJECT_NAME})
|
|
set(DOXYGEN_PROJECT_NUMBER ${PROJECT_VERSION})
|
|
|
|
# Doc assets are needed from the top-level SDK directory.
|
|
# CMAKE_SOURCE_DIR will not point there if building from a subproject
|
|
# like sdk/core/azure-core, so use PROJECT_SOURCE_DIR instead.
|
|
# Subprojects are assumed to always be 3 levels down from the root.
|
|
set(SDK_ROOT_DIR ${PROJECT_SOURCE_DIR}/../../..)
|
|
|
|
set(DOXYGEN_OUTPUT_DIRECTORY docs)
|
|
set(DOXYGEN_LAYOUT_FILE ${SDK_ROOT_DIR}/eng/docs/api/assets/DoxygenLayout.xml)
|
|
set(DOXYGEN_RECURSIVE YES)
|
|
if (MSVC)
|
|
set(DOXYGEN_WARN_FORMAT "$file($line) : $text")
|
|
endif()
|
|
set(DOXYGEN_WARN_AS_ERROR FAIL_ON_WARNINGS)
|
|
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE ./README.md)
|
|
# Setting the INLINE_SOURCES tag to YES will include the body of functions,
|
|
# classes and enums directly into the documentation.
|
|
set(DOXYGEN_INLINE_SOURCES NO)
|
|
set(DOXYGEN_MARKDOWN_ID_STYLE GITHUB)
|
|
# Skip generating docs for json, test, samples, and private files.
|
|
set(DOXYGEN_EXCLUDE_PATTERNS
|
|
json.hpp
|
|
package_version.hpp
|
|
dll_import_export.hpp
|
|
apiview.hpp
|
|
rtti.hpp
|
|
test
|
|
*/out/*
|
|
*/build/*
|
|
*/samples/*
|
|
*/vendor/*
|
|
)
|
|
# Skip documenting internal and private symbols (all from ::_detail/_::internal namespaces)
|
|
set(DOXYGEN_EXCLUDE_SYMBOLS _detail _internal)
|
|
set(DOXYGEN_IGNORE_PREFIX
|
|
az_
|
|
AZ_
|
|
)
|
|
set(DOXYGEN_HTML_HEADER ${SDK_ROOT_DIR}/eng/docs/api/assets/header.html)
|
|
set(DOXYGEN_HTML_FOOTER ${SDK_ROOT_DIR}/eng/docs/api/assets/footer.html)
|
|
set(DOXYGEN_HTML_STYLESHEET ${SDK_ROOT_DIR}/eng/docs/api/assets/style.css)
|
|
set(DOXYGEN_PROJECT_LOGO ${SDK_ROOT_DIR}/eng/common/docgeneration/assets/logo.svg)
|
|
|
|
set(DOXYGEN_GENERATE_XML YES)
|
|
set(DOXYGEN_GENERATE_LATEX NO)
|
|
# Use MathJax instead of latex to render formulas
|
|
set(DOXYGEN_USE_MATHJAX YES)
|
|
|
|
set(DOXYGEN_REPEAT_BRIEF NO)
|
|
|
|
doxygen_add_docs(${PROJECT_NAME}-docs
|
|
./inc ./README.md
|
|
ALL
|
|
COMMENT "Generate documentation for ${PROJECT_NAME} with Doxygen Version ${DOXYGEN_VERSION}")
|
|
endif()
|
|
endfunction()
|