Provides utility functions to get system's local network IP address by executing OS commands in the host machine.
The output from the executed command is then parsed and an instance of a IpAddr
is returned from the function.
```rust use localipaddress::local_ip;
fn main() { let mylocalipaddress = localip().unwrap();
println!("{:?}", my_local_ip_address);
} ```
Every host may or may not have a different approach on gathering the local IP address.
local-ip-address
crate implements Conditional Compilation
to execute different approaches based on host machine operative system.
In order to create a release you must push a Git tag as follows
sh
git tag -a <version> -m <message>
Example
sh
git tag -a v0.1.0 -m "First release"
Tags must follow semver conventions Tags must be prefixed with a lowercase
v
letter.
Then push tags as follows:
sh
git push origin main --follow-tags
Every contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.
Distributed under the terms of both the MIT license and the Apache License (Version 2.0)