New to Rust: How does Rust handle linked libraries
New to Rust: How does Rust handle linked libraries - programming.dev
I’m super new to Rust, like a day old really. But I tried a program made in Rust on Windows, and it refuses to work. Never prints anything. Just straight up instantly dead. Long story short, this thing relies on some linked stuff like ffmpeg in some form. So, I did my best trying to gather all the things it needs per github issues, reddit and other souces. And the end result was that it now spent 0.1 s longer before crashing, actually leaving time for some error in the Windows Event log. Nothing useful there either as far as I can see. So I clone the repo and get the required things to compile Rust, and I managed to build it from source at least. The executable doesn’t run, but the Run in VS Code works, somehow. It prints the error messages corresponding to missing input. So i try to debug it, but nothing happens. No breakpoint is hit, and nothing is printed in the terminal, unlike when using Run or cargo Run. I can also just strip out everything it does in the file the main function is in, and it will hit breakpoints. But that didn’t help me find out what is missing/broken though. So what the difference, is there a way to catch and prevent Rust from just going silent, and actually tell you what dependencies it failed to load? My entire reason for getting it running locally is to fix that. Because no one sane wants to deal with a program that doesn’t tell you why it will not run… The program is called Av1an for reference, and it’s a video encoding tool. I used a python version before they migrated to Rust, and wanted to give it a try again.