Skip to content

Commit

Permalink
Merge pull request #1 from sn99/master
Browse files Browse the repository at this point in the history
Move from winapi to windows-sys
  • Loading branch information
dilawar committed Jun 3, 2022
2 parents 83399df + e24ba1e commit ce8f0e2
Show file tree
Hide file tree
Showing 10 changed files with 664 additions and 580 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ Cargo.lock

# Project Vim Configuration
.vimdir

# Jetbrains Clion Configuration
/.idea

# main.rs
/src/main.rs
16 changes: 11 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ include = [
]

[dependencies]
socket2 = "^0.4"
socket2 = {git = "https://github.com/rust-lang/socket2.git"}
clippy = {version = "^0", optional = true}
cfg-if = "^1.0"

[target."cfg(windows)".dependencies.winapi]
version = "^0.3"
default-features = false
features = ["windef", "ws2def", "ws2tcpip"]

# [target."cfg(windows)".dependencies.winapi]
# version = "^0.3"
# default-features = false
# features = ["windef", "ws2def", "ws2tcpip"]


[target."cfg(windows)".dependencies.windows-sys]
version = "0.36.1"
features = ["Win32_Networking_WinSock", "Win32_Foundation"]

[target."cfg(unix)".dependencies]
libc = "^0.2"
Loading

0 comments on commit ce8f0e2

Please sign in to comment.