openport 0.2.0

Find a free unused port
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "openport"
version = "0.2.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.2.0"
features = ["rand"]
optional = true
default-features = false