Open Yinwhe opened 2 weeks ago
I notice that this tool use rustc_private feature and TyCtxt as the core structures for functionality. However, in some scenario we may not be able build the crates directly (for example, in FFI cases, we may use Makefile and rustc directly to build the projects), and thus, we can only have the MIR codes. Is it possible to use these MIR files for analysis?
Many projects with makefiles also employ Cargo build. You may search the Cargo.toml file within the project to run RAP. Can you give an example if this does not work for you?
Similarly, if the target projects cannot be built using the given toolchain version, can this tool easily move to another version? What's the development overhead?
Since Rustc maintains a good backward compatibility for existing Rust projects, we will continuously upgrade our tool based on the latest Rustc version.
Hi, I got two questions about this tools:
rustc_private
feature andTyCtxt
as the core structures for functionality. However, in some scenario we may not be able build the crates directly (for example, in FFI cases, we may use Makefile andrustc
directly to build the projects), and thus, we can only have the MIR codes. Is it possible to use these MIR files for analysis?