Relative Content

Tag Archive for rustrust-cargo

Rust project broken – reference to packed field is unaligned

Having just picked up Mass Effect Legendary edition, I of course want to mod it out. However, I need to get the trilogy save editor working. Since the latest version won’t install, I decided to download the source and create my own binary (I am FAR from a programmer, but I’m an old sysadmin and have had to build binaries before for linux)

Why in Rust struct only last field is allowed to have dynamically sized type

Here is this document https://web.mit.edu/rust-lang_v1.25/arch/amd64_ubuntu1404/share/doc/rust/html/book/first-edition/unsized-types.html It is says that
Only the last field in a struct may have a dynamically sized type; the other fields must not. Enum variants must not have dynamically sized types as data..

Cargo build on workspace rebuilds some crates when run

I’ve run into an issue where with a virtual workspace with multiple binary targets, cargo build completes, and then when running some of the binary targets needs to rebuild some of the dependencies, and some of the final binaries. I have the proxy binary as the default-run key for this.