Skip to content

Commit 5ae11e5

Browse files
authored
fix docs ci (mitmproxy#212)
1 parent 2238312 commit 5ae11e5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: install-pinned/mypy@2b552bed479e3f7065314667b670f7303619e989
2727
- uses: install-pinned/pdoc@fd9469ecb06f32b7012e07e449ce98b217bf1189
2828

29-
- run: maturin build
29+
- run: maturin build --features docs,pyo3/extension-module
3030
working-directory: ./mitmproxy-rs
3131
- run: pip install --no-index --no-dependencies --find-links target/wheels/ mitmproxy_rs
3232

mitmproxy-rs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ env_logger = "0.11"
3838

3939
[features]
4040
tracing = ["console-subscriber"]
41+
docs = []
4142

4243
[[test]]
4344
name = "test_task"

mitmproxy-rs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ mod mitmproxy_rs {
9797
// Import platform-specific modules here so that missing dependencies are raising immediately.
9898
#[cfg(target_os = "macos")]
9999
m.py().import("mitmproxy_macos")?;
100-
#[cfg(target_os = "linux")]
100+
#[cfg(all(target_os = "linux", not(feature = "docs")))]
101101
m.py().import("mitmproxy_linux")?;
102102
#[cfg(windows)]
103103
m.py().import("mitmproxy_windows")?;

0 commit comments

Comments
 (0)