Rust bindings for DTrace.
- Git for Windows
- Rust
- Build Tools for Visual Studio
- Choose "Desktop development with C++" while installing.
- Add
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin
toPATH
- Setup requirements for bindgen
- Open an powershell and set the execution policy
Set-ExecutionPolicy RemoteSigned –Scope Process
- Run
cargo build
In order to run examples and tests a few more steps are required.
- Download DTrace kernel driver.
- Enable tracing by running the following command in an elevated terminal
bcdedit /set dtrace ON
- Set the
_NT_SYMBOL_PATH
as follows
_NT_SYMBOL_PATH=srv*C:\symbols*https://msdl.microsoft.com/download/symbols
- Create the symbols directory at
C:\symbols
- Run
cargo run --example <example_name>
to run an example orcargo test
to run tests.