### Install bpf-linker Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/mitmproxy-linux/README.md Installs the bpf-linker tool, a build dependency for the redirector. ```bash cargo install --locked bpf-linker ``` -------------------------------- ### Install mitmproxy_windows Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/mitmproxy-windows/README.md Install the mitmproxy_windows package in editable mode. This is typically done during development to allow for quick changes. ```bash pip install -e . ``` -------------------------------- ### Clone and Develop mitmproxy_rs Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/CONTRIBUTING.md Clone the repository, navigate to the project directory, and use `maturin develop` to build and install the local version of mitmproxy_rs. Remember to re-run this command and restart mitmproxy after making changes to the Rust code. ```shell git clone https://github.com/mitmproxy/mitmproxy_rs.git cd mitmproxy_rs/mitmproxy-rs maturin develop ``` -------------------------------- ### Run Rust Test Suite Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/CONTRIBUTING.md Execute the basic test suite for the Rust code using `cargo test`. Ensure all code changes are accompanied by corresponding test updates. ```shell cargo test ``` -------------------------------- ### Introspect Tokio Runtime with tokio-console Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/CONTRIBUTING.md If the crate was built with the `tracing` feature, you can use `tokio-console` to introspect the asynchronous runtime. Connect to the specified address to monitor task activity and ensure there is no busy waiting when the program is idle. ```shell tokio-console http://localhost:6669 ``` -------------------------------- ### Run mitmdump in Development Mode Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/mitmproxy-windows/README.md Execute mitmdump with the '--mode local:curl' option to enable development mode. This will trigger the compilation of the windows-redirector.exe. ```bash mitmdump --mode local:curl ``` -------------------------------- ### Keep Development Mitmproxy Redirector Source: https://github.com/mitmproxy/mitmproxy_rs/blob/main/mitmproxy-macos/README.md Set this environment variable to keep the development version of the mitmproxy redirector app. This is useful during development to avoid reinstalling the app on every change. ```bash MITMPROXY_KEEP_REDIRECTOR=1 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.