File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ env_logger = "0.11"
3838
3939[features ]
4040tracing = [" console-subscriber" ]
41+ docs = []
4142
4243[[test ]]
4344name = " test_task"
Original file line number Diff line number Diff 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" ) ?;
You can’t perform that action at this time.
0 commit comments