Skip to content

Commit

Permalink
fix docs ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Jan 2, 2025
1 parent 2238312 commit 52fbd22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: install-pinned/mypy@2b552bed479e3f7065314667b670f7303619e989
- uses: install-pinned/pdoc@fd9469ecb06f32b7012e07e449ce98b217bf1189

- run: maturin build
- run: maturin build --features docs
working-directory: ./mitmproxy-rs
- run: pip install --no-index --no-dependencies --find-links target/wheels/ mitmproxy_rs

Expand Down
1 change: 1 addition & 0 deletions mitmproxy-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ env_logger = "0.11"

[features]
tracing = ["console-subscriber"]
docs = []

[[test]]
name = "test_task"
Expand Down
2 changes: 1 addition & 1 deletion mitmproxy-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ mod mitmproxy_rs {
// Import platform-specific modules here so that missing dependencies are raising immediately.
#[cfg(target_os = "macos")]
m.py().import("mitmproxy_macos")?;
#[cfg(target_os = "linux")]
#[cfg(all(target_os = "linux", not(feature = "docs")))]
m.py().import("mitmproxy_linux")?;
#[cfg(windows)]
m.py().import("mitmproxy_windows")?;
Expand Down

0 comments on commit 52fbd22

Please sign in to comment.