Skip to content

Commit b3bfe7f

Browse files
authored
build: allow "building" rts-alloc on windows (#22)
1 parent 364d303 commit b3bfe7f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ license-file = "LICENSE"
77
repository = "https://github.com/apfitzge/rts-alloc"
88
authors = ["Andrew Fitzgerald <[email protected]>"]
99

10-
[dependencies]
10+
[target."cfg(unix)".dependencies]
1111
libc = { version = "0.2.174" }

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(unix)]
2+
13
mod align;
24
pub mod allocator;
35
mod cache_aligned;

0 commit comments

Comments
 (0)