about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2023-12-08 15:01:38 +0000
committerChris Denton <chris@chrisdenton.dev>2024-02-14 06:49:37 -0300
commitadcbeb7fdb4157d108fd939697d0991840c7a58f (patch)
tree31edf079a8cc24bcc5f119408fbe6c4b48c118e6
parenta261f8edd8de496c1bbb8b1e220148776ccf35cb (diff)
downloadrust-adcbeb7fdb4157d108fd939697d0991840c7a58f.tar.gz
rust-adcbeb7fdb4157d108fd939697d0991840c7a58f.zip
Add windows_sys readme
-rw-r--r--library/std/src/sys/pal/windows/c/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/windows/c/README.md b/library/std/src/sys/pal/windows/c/README.md
new file mode 100644
index 00000000000..d458e55efbc
--- /dev/null
+++ b/library/std/src/sys/pal/windows/c/README.md
@@ -0,0 +1,9 @@
+The `windows_sys.rs` file is autogenerated from `bindings.txt` and must not
+be edited manually.
+
+To add bindings, edit `bindings.txt` then regenerate using the following command:
+
+    ./x run generate-windows-sys && ./x fmt library/std
+
+If you need to override generated functions or types then add them to
+`library/std/src/sys/pal/windows/c.rs`.