Skip to content

Commit 1e40108

Browse files
committed
Add build.rs to make CI happy.
1 parent 3f8c474 commit 1e40108

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
- Add VxWorks support
44
[#105](https://github.com/lambda-fairy/rust-errno/pull/105)
55

6+
- Add cygwin support
7+
[#106](https://github.com/lambda-fairy/rust-errno/pull/106)
8+
69
# [0.3.10] - 2024-11-29
710

811
- Update to windows-sys 0.59

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ libc = { version = "0.2", default-features = false }
1717

1818
[target.'cfg(windows)'.dependencies.windows-sys]
1919
version = ">=0.52, <=0.59"
20-
features = [
21-
"Win32_Foundation",
22-
"Win32_System_Diagnostics_Debug",
23-
]
20+
features = ["Win32_Foundation", "Win32_System_Diagnostics_Debug"]
2421

2522
[target.'cfg(target_os="wasi")'.dependencies]
2623
libc = { version = "0.2", default-features = false }
@@ -31,3 +28,6 @@ libc = { version = "0.2", default-features = false }
3128
[features]
3229
default = ["std"]
3330
std = ["libc/std"]
31+
32+
[patch.'crates-io']
33+
libc = { path = "../libc" }

build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
fn main() {
2+
// Cygwin target, added in 1.86
3+
println!("cargo:rustc-check-cfg=cfg(target_os, values(\"cygwin\"))");
4+
}

0 commit comments

Comments
 (0)