Crates.io | compiledfiles |
lib.rs | compiledfiles |
version | 0.8.0 |
source | src |
created_at | 2019-12-15 17:42:33.944465 |
updated_at | 2023-03-14 05:06:00.902739 |
description | Parse native binary symbols for list of source files used to compile binary |
homepage | https://github.com/schultetwin1/compiledfiles |
repository | https://github.com/schultetwin1/compiledfiles |
max_upload_size | |
id | 189582 |
size | 30,473 |
A rust library to return a list of all the source files listed in the symbols of a native compiled file.
For example, a simple main.c such as the following
include <stdio.h>
int main(int argc, const char* argv[]) {
printf("Hello, World\n");
return 0;
}
compiled with GCC, would return
/home/matt/dev/examples/simple_c/main.c
/usr/include/stdio.h
/usr/include/x86_64-linux-gnu/bits/types/FILE.h
/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h
This library is cross platform, and can be used on a Windows, Linux, or Mac host. However, there are many tools that generate different symbols files and not all are currently supported.
The following compilers are currently supported:
No versioning check has been done yet to ensure the symbol files they generate are compatiable across all versions.
The only supported languages currently are C/C++ though other languages may just work. Due to the nature of this project, Rust is next on the list for support.
The following symbol formats are currently supported
Mach-O files are next in line. Also, split dwarfs have not yet been tested.