[package]
edition = "2024"
name = "openport"
version = "0.3.0"
authors = ["Braden Steffaniak"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Find a free unused port"
readme = "README.md"
keywords = [
"network",
"port",
"tcp",
"udp",
]
categories = ["network-programming"]
license = "MPL-2.0"
repository = "https://github.com/MoosicBox/MoosicBox"
[package.metadata]
examples = true
[package.metadata.workspaces]
independent = true
[features]
cli = ["dep:clap"]
default = ["reservation"]
fail-on-warnings = ["switchy_random?/fail-on-warnings"]
rand = [
"dep:switchy_random",
"switchy_random?/rand",
]
reservation = []
[lib]
name = "openport"
path = "src/lib.rs"
[[bin]]
name = "openport"
path = "src/main.rs"
required-features = ["cli"]
[dependencies.clap]
version = "4.6.1"
features = ["derive"]
optional = true
[dependencies.switchy_random]
version = "0.3.0"
features = ["rand"]
optional = true
default-features = false