Skip to content

Commit

Permalink
ci doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Jan 28, 2024
1 parent d5c1507 commit d380940
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,12 @@ jobs:
- run: cargo test ${{ matrix.flags }} -- --nocapture
env:
TRACY_NO_INVARIANT_CHECK: 1
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup install nightly --profile=minimal
- run: rustup default nightly
- run: cargo rustdoc --all-features -p tracy-client-sys -Zunstable-options --config 'build.rustdocflags=["--cfg", "tracy_client_sys_docs", "-D", "rustdoc::broken_intra_doc_links"]'
- run: cargo rustdoc --all-features -p tracy-client -Zunstable-options --config 'build.rustdocflags=["--cfg", "tracy_client_docs", "-D", "rustdoc::broken_intra_doc_links"]'
- run: cargo rustdoc --all-features -p tracing-tracy -Zunstable-options --config 'build.rustdocflags=["--cfg", "tracing_tracy_docs", "-D", "rustdoc::broken_intra_doc_links"]'
1 change: 1 addition & 0 deletions tracing-tracy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ flush-on-exit = ["client/flush-on-exit"]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "tracing_tracy_docs"]
all-features = true
2 changes: 1 addition & 1 deletion tracing-tracy/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub trait Config {
/// Apply handling for errors detected by the [`TracyLayer`](super::TracyLayer).
///
/// Fundamentally the way the tracing crate and the Tracy profiler work are somewhat
/// incompatible in certain ways. For instance, a [`tracing::Span`] can be created on one
/// incompatible in certain ways. For instance, a `tracing::Span` can be created on one
/// thread and moved to another, where it is cleaned up. Tracy on the other hand expects that
/// its eqvivalent concept of zone remains entirely within a thread.
///
Expand Down
1 change: 1 addition & 0 deletions tracy-client-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ callstack-inlines = []
flush-on-exit = []

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "tracy_client_sys_docs"]
1 change: 1 addition & 0 deletions tracy-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ flush-on-exit = ["sys/flush-on-exit"]

[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "tracy_client_docs"]
all-features = true

0 comments on commit d380940

Please sign in to comment.