push-xzmymozkwluy #5

Merged
eric merged 3 commits from push-xzmymozkwluy into main 2026-11-08 00:39:57 +01:00
Owner
No description provided.
Refactor ip_utils to support filtering IP addresses by family (V4, V6, or Both). Update list_all_ips to accept an IpFamily argument and return io::Result.

- Add IpFamily enum with V4, V6, and Both variants in src/ip_utils.rs
- Modify list_all_ips to accept IpFamily argument and filter results accordingly
- Update README.md to reflect new function signature and usage examples
- Remove guess_local_ip_with_timeout documentation from src/lib.rs
- Clean up obsolete tests and add new ones for IP family filtering logic
Update `guess_local_ip` to return `io::Result<Ipv4Addr>` instead of a String,
removing the hardcoded fallback and requiring callers to handle I/O errors.
Restrict `find_process_using_port` to only match TCP sockets in the LISTEN state,
ignoring established connections.

- refactor `src/ip_utils.rs`: change `guess_local_ip` return type to `io::Result<Ipv4Addr>`; remove `is_private_ip` and obsolete fallback tests; add tests for error handling and valid IPv4 results
- update `src/lib.rs`: handle `Ok` result from `guess_local_ip` with a match expression instead of direct usage
- refactor `src/process.rs`: restrict `find_process_using_port` to `TcpState::Listen`; add test for ignoring established connections
- update `README.md`: document IPv4 return type for `guess_local_ip` and clarify `list_all_ips` behavior
feat: release v0.2.0 and add pmoutils library with IP and process utilities
All checks were successful
Release / release (push) Successful in 1m29s
c4b2d6d3c1
Update package version from 0.1.4 to 0.2.0 across Cargo.toml, Cargo.lock, and version.txt. Add the new `pmoutils` crate containing an `ip_utils` module with an `IpFamily` enum and a `process` module with `TransportProtocol` and `ProcessPortInfo`.

- Update package version to 0.2.0 in Cargo.toml, Cargo.lock, and version.txt
- Add api/0.2.0.json and api/0.2.0.txt for the new release artifacts
- Introduce pmoutils library with IpFamily enum supporting Clone, Eq, Debug, Hash, Send, Sync
- Add TransportProtocol enum (Tcp, Udp) and ProcessPortInfo struct with full trait implementations
- Implement guess_local_ip utility in ip_utils module
- Implement find_process_using_port utility in process module
eric merged commit 3f98cbee1a into main 2026-11-08 00:39:57 +01:00
eric deleted branch push-xzmymozkwluy 2026-11-08 00:40:00 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pmo/pmoutils!5
No description provided.