Skip to content

Commit 5f7f47e

Browse files
committed
drop rust in favor of c++ for test programs
Unfortunately Rust has deprecated support for the Windows we target. Previous changes have replaced the Rust test programs with C++ versions. Using Rust to write minimal Windows programs was kind of an uphill battle anyway, e.g. the windows crate requires std to use DirectDraw (for COM reasons, is my recollection) while we didn't want std; rust-analyzer hated the use of x86 assembly; etc. Getting the Windows programs small was its own fight (e.g. calling "new" pulls in a bunch of STL goop) but I think overall it has been relatively easier. We unfortunately lose the 'zip' test. Ironically I had originally written this in C++, then migrated it to Rust to be able to reuse a crate. I guess I could go back to pasting in a C++ zip implementation in the tree. See discussion in rust-lang/rust#116344 , which was the last issue where this point was finally forced.
1 parent e996a89 commit 5f7f47e

30 files changed

+1
-1863
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
resolver = "2"
33
members = [
44
"cli",
5-
"exe/rust",
6-
"exe/rust/ddraw-sys",
7-
"exe/zip",
85
"minibuild",
96
"pe",
107
"web/glue",

exe/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
This directory contains some win32 executables used to test retrowin32.
22

33
- callback: exe that calls a testing retrowin32 API that calls back to exe
4+
- cpp: various Windows test programs in C++
45
- ops: dump results of x86 operations
5-
- rust: various Windows test programs in Rust
66
- trace: Windows exe tracer using Windows debug API
77
- winapi: MSVC Windows API (no C runtime)
88
- zig_hello: Zig hello world
9-
- zip: compress/decompres a buffer (CPU-intensive)
109

1110
## Symlinks
1211

exe/rust/.cargo/config.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

exe/rust/Cargo.toml

Lines changed: 0 additions & 30 deletions
This file was deleted.

exe/rust/README.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

exe/rust/build.rs

Lines changed: 0 additions & 12 deletions
This file was deleted.

exe/rust/build.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

exe/rust/ddraw-sys/Cargo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

exe/rust/ddraw-sys/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)