[package]
name = "socket9"
version = "0.1.0-alpha.1"
authors = ["4neko contributors<patch@4neko.org>", "Aleksandr Morozov <alex@nixd.org>"]
description= "Extended untilities for the networking/unix sockets and raw network sockets"
edition = "2024"
keywords = ["socket", "network", "handle", "raw", "io"]
categories = ["api-bindings", "network-programming"]
license="EUPL-1.2 OR MPL-2.0 OR MIT"
repository = "https://codeberg.org/4neko/socket9/src/branch/socket9-master"
[dependencies]
bitfield = "~0.19"
bitflags = "~2.10"
uds-fork = "~0.7"
[target.'cfg(unix)'.dependencies]
libc = "~0.2"
[target.'cfg(windows)'.dependencies.windows-sys]
version = "~0.61"
features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_System_IO",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
]
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
]
[dev-dependencies]
rand = "0.9"
tempfile = { version = "~3.27" }
[[example]]
name = "other_socket"
path = "examples/other_socket.rs"
required-features = ["unix"]
[[example]]
name = "std_socket_extended"
path = "examples/std_socket_extended.rs"