Closed TressaDanvers closed 1 year ago
Looks like a windows implementation is necessary for https://github.com/digama0/mm0/blob/5ea40f6f30b467537ca48d961eef0c485ac9a3b9/mm0-rs/components/mm0_util/src/lib.rs#L641 or alternatively to make it use the fallback on non-unix platforms.
I'm surprised you are seeing that function without compiling with the memory
feature enabled (which is only intended for heap profiling and should not be enabled by default). I will make sure it only gets enabled on unix.
(I will accept a PR / mentor anyone who wants to make the heap profiling support work on windows, but I don't have one to test. I have a day job now so this project is on the back burner.)
When I attempt to build the mm0-rs directory with rust (exact command used is "
cargo build --release
"), the compiler throws an error. two words have no definition, "getrusage
" and "RUSAGE_SELF
". I am new to rust so it might be that I am missing something that is required for this build to work, but I cannot find what it is if that's the case.Here is the exact output of the build when it encounters the mm0_util component: