This commit is contained in:
2025-07-25 23:44:04 +08:00
parent 852d47ce04
commit bc3eabee28
5 changed files with 433 additions and 1 deletions

28
Cargo.toml Normal file
View File

@@ -0,0 +1,28 @@
[package]
name = "uip"
version = "0.1.6"
edition = "2021"
authors = ["Datong Sun <dndx@idndx.com>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dndx/uip"
readme = "README.md"
description = """
A tool to quickly determine the public IP address of a machine behind
NAT with the help of STUN servers.
"""
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.2", features = ["cargo"] }
log = "0.4"
stun = "0.4"
tokio = "1.27"
pretty_env_logger = "0.5"
[profile.release]
strip = true
opt-level = "z" # Optimize for size.
lto = true
panic = "abort"
codegen-units = 1