{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicv4tlv24wfq4jagvifm3mzcpnfigf5swtvy6qebhtryvrbqvnyqe",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mfc4g66hvhb2"
},
"path": "/t/using-pre-2015-rust/24007#post_6",
"publishedAt": "2026-02-20T08:33:54.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Tried it, it could not integrate with cargo well. I had to write a wrapper to translate `-vV` into `--version verbose`, and then `cargo run` had this error:\n\n\n error: malformed output when learning about crate-type bin information\n command was: `D:\\study-coding\\rust\\use-pre-2015-rust\\.\\rustc_wrapper.cmd - --crate-name ___ --print=file-names --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg -Wwarnings`\n\n --- stderr\n error: Unrecognized option: 'print'.\n\n\nSo I tried running rustc directly `rustc src/main.rs` but it seems it only had the `i686-pc-mingw32` target which linker I don't have:\n\n\n D:\\study-coding\\rust\\use-pre-2015-rust>rustc src/main.rs\n error: could not exec the linker `gcc`: file not found (OS Error 2: 系统找不到指定的文件。\n )\n error: aborting due to previous error\n\n\nI'll do it another day, I'll have to use the Linux VM, install MinGW, or find a msvc target toolchain.",
"title": "Using pre-2015 Rust"
}