• version-0.2.7 a0558fdef9

    version-0.2.7
    All checks were successful
    Release / release (push) Successful in 1m26s
    Stable

    eric released this 2026-11-14 05:07:13 +01:00 | 1 commits to main since this release

    • New local_ip_towards: Added robust local IP detection with fallback logic.

    • Internal Helpers: Introduced probe_default_route and associated fallback helpers to support improved address resolution.

    • API Cleanup: Removed noisy generic trait implementations from the public API snapshot for cleaner exports.

    • Public API Docs: Added comprehensive documentation for local_ip_towards, list_all_ips, and process utilities in src/lib.rs.

    • Tests: Added tests for local_ip_towards covering loopback and reachability checks in tests/ip_utils.rs.

    • Version Bump: Updated version to 0.2.7 across Cargo.toml, Cargo.lock, .crate-kit/VERSION, and version.txt.

    • API Snapshots: Updated snapshots (api/0.2.7.txt, api/0.2.7.json.gz) and updated scripts (api-level.sh, api-snapshot.sh) to use the -s flag for cleaner output.

    > pub fn pmoutils::ip_utils::local_ip_towards(core::net::ip_addr::Ipv4Addr) -> core::io::error::Result<core::net::ip_addr::Ipv4Addr>
    
    Downloads
  • version-0.2.6 1273afa54d

    version-0.2.6
    All checks were successful
    Release / release (push) Successful in 1m30s
    Stable

    eric released this 2026-11-12 12:22:05 +01:00 | 3 commits to main since this release

    • IP Utilities: Added IpFamily enum and TransportProtocol enum.

    • Process Utilities: Added ProcessPortInfo struct.

    • New Functions:

      • guess_local_ip()
      • list_all_ips()
      • find_process_using_port()
    • Bumped version to 0.2.6 across Cargo.toml, Cargo.lock, .crate-kit/VERSION, and version.txt.

    • Added binary API documentation (api/0.2.6.json.gz) and text-based API documentation (api/0.2.6.txt).

    Downloads
  • version-0.2.5 71fe2db7a7

    version-0.2.5
    All checks were successful
    Release / release (push) Successful in 1m32s
    Stable

    eric released this 2026-11-12 01:27:30 +01:00 | 5 commits to main since this release

    • API Documentation: Added IpFamily, TransportProtocol, and ProcessPortInfo types to the public API documentation.

    • Dependency Updates: Updated sysinfo dependency to version 0.40.3.

    • Snapshot Migration: Migrated all public API snapshots from uncompressed .json to compressed .json.gz format.

    • Build Scripts:

      • Updated api-snapshot.sh to compress JSON output using gzip -9 -n -c.
      • Updated api-level.sh to handle .json.gz input/output.
      • Updated common.sh's latest_snapshot function to locate .json.gz files.
      • Enhanced jjfetch.sh with twin revision detection and abandonment logic.
      • Added DEPS_CHECK_EXTERNAL_IGNORE variable and logic to deps-check-external.sh.
      • Modified crate.mk to use --all-features for test, doc, and api-snapshot targets.
    • Versioning: Updated project version to 0.2.5 in Cargo.toml, Cargo.lock, and .crate-kit/VERSION (updated from 0.1.9 to 0.1.14).

    • Removed AGENTS.md guidelines file.

    • Updated README.md with new type details and OS detection information.

    Downloads
  • version-0.2.4 299cd3a05e

    version-0.2.4
    All checks were successful
    Release / release (push) Successful in 1m28s
    Stable

    eric released this 2026-11-08 09:21:22 +01:00 | 7 commits to main since this release

    • Dependency Updates: Migrate from get_if_addrs to if-addrs. Bump os_info to 3.15 and sysinfo to 0.40.

    • API Documentation: Add public API documentation for version 0.2.4 (api/0.2.4.json, api/0.2.4.txt).

    • Process Handling: Refine logic in src/process.rs by using ProcessRefreshKind::nothing() and handling System initialization errors.

    • Build System: Introduce Makefile targets (deps-check, deps-bump) and scripts (deps-check.sh, deps-check-external.sh, deps-lib.sh) for dependency management.

    • CI Pipeline: Include deps-check in CI pipeline via .crate-kit/crate.mk.

    • API Stability: Add filtre_instable filter to .crate-kit/scripts/common.sh and update api-level.sh to exclude unstable traits from output.

    • Versioning: Update .crate-kit/VERSION to 0.1.9 and version.txt to 0.2.4.

    < impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::ip_utils::IpFamily
    < pub type pmoutils::ip_utils::IpFamily::Init = T
    < pub const pmoutils::ip_utils::IpFamily::ALIGN: usize
    < pub unsafe fn pmoutils::ip_utils::IpFamily::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmoutils::ip_utils::IpFamily::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmoutils::ip_utils::IpFamily::drop(usize)
    < pub unsafe fn pmoutils::ip_utils::IpFamily::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmoutils::ip_utils::IpFamily
    < impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::process::TransportProtocol
    < pub type pmoutils::process::TransportProtocol::Init = T
    < pub const pmoutils::process::TransportProtocol::ALIGN: usize
    < pub unsafe fn pmoutils::process::TransportProtocol::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmoutils::process::TransportProtocol::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmoutils::process::TransportProtocol::drop(usize)
    < pub unsafe fn pmoutils::process::TransportProtocol::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmoutils::process::TransportProtocol
    < impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::process::ProcessPortInfo
    < pub type pmoutils::process::ProcessPortInfo::Init = T
    < pub const pmoutils::process::ProcessPortInfo::ALIGN: usize
    < pub unsafe fn pmoutils::process::ProcessPortInfo::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmoutils::process::ProcessPortInfo::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmoutils::process::ProcessPortInfo::drop(usize)
    < pub unsafe fn pmoutils::process::ProcessPortInfo::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmoutils::process::ProcessPortInfo
    < impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::process::TransportProtocol
    < pub type pmoutils::process::TransportProtocol::Init = T
    < pub const pmoutils::process::TransportProtocol::ALIGN: usize
    < pub unsafe fn pmoutils::process::TransportProtocol::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmoutils::process::TransportProtocol::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmoutils::process::TransportProtocol::drop(usize)
    < pub unsafe fn pmoutils::process::TransportProtocol::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmoutils::process::TransportProtocol
    < impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::process::ProcessPortInfo
    < pub type pmoutils::process::ProcessPortInfo::Init = T
    < pub const pmoutils::process::ProcessPortInfo::ALIGN: usize
    < pub unsafe fn pmoutils::process::ProcessPortInfo::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmoutils::process::ProcessPortInfo::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmoutils::process::ProcessPortInfo::drop(usize)
    < pub unsafe fn pmoutils::process::ProcessPortInfo::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmoutils::process::ProcessPortInfo
    
    Downloads
  • version-0.2.3 ef550939d9

    version-0.2.3
    All checks were successful
    Release / release (push) Successful in 1m30s
    Stable

    eric released this 2026-11-08 01:46:50 +01:00 | 9 commits to main since this release

    • Add new IP and process utilities (IpFamily, TransportProtocol).

    • Add CeCILL license (LICENSE.en).

    • Refactor build system: replace local fetch logic with jjfetch.sh script.

    • Update Makefile to synchronize .crate-kit/kit from ../crate-kit.

    • Define JJ_KIT_DIR and color variables in .crate-kit/jj.mk.

    • Remove obsolete .cargo/config.toml (added to .gitignore).

    Downloads
  • version-0.2.2 20b94f8fb8

    version-0.2.2
    All checks were successful
    Release / release (push) Successful in 1m28s
    Stable

    eric released this 2026-11-08 01:30:30 +01:00 | 11 commits to main since this release

    • System Utilities: Added IpFamily, TransportProtocol, and ProcessPortInfo definitions to the API.

    • Version Bump: Updated package version to 0.2.2 across Cargo.toml, Cargo.lock, and version.txt.

    • API Snapshots: Added api/0.2.2.json and api/0.2.2.txt for the new API definitions.

    • Dev Tooling:

      • Introduced .crate-kit/dev-patch.mk and scripts/dev-patch.sh for local development registry patches.
      • Updated .cargo/config.toml to include the PMO sparse registry index.
      • Modified .crate-kit/scripts/common.sh to define PMO_REGISTRY_INDEX and check for cargo tools.
      • Updated .crate-kit/VERSION to 0.1.4 and added terminal colors in crate.mk.
      • Enhanced scripts/api-snapshot.sh to include --document-private-items.
    Downloads
  • version-0.2.1 c58e5166a9

    version-0.2.1
    All checks were successful
    Release / release (push) Successful in 1m25s
    Stable

    eric released this 2026-11-08 00:52:08 +01:00 | 13 commits to main since this release

    • API Documentation: Added api/0.2.1.json and api/0.2.1.txt documenting the public API surface.

      • ip_utils: Introduced IpFamily enum (Both, V4, V6).
      • process: Introduced TransportProtocol enum (Tcp, Udp) and ProcessPortInfo struct.
      • Added utility functions: guess_local_ip, list_all_ips, find_process_using_port.
    • Dependencies: Updated libc (0.2.191), nix (0.31.3), and os_info (3.15.0) in Cargo.lock.

    • Versioning: Bumped package version to 0.2.1 in Cargo.toml and version.txt.

    • Build System: Updated .crate-kit/crate.mk to handle version-based requirements for dependent projects, extracting major/minor versions for "0.x" crates with appropriate warnings.

    Downloads
  • version-0.2.0 c4b2d6d3c1

    version-0.2.0
    All checks were successful
    Release / release (push) Successful in 1m29s
    Stable

    eric released this 2026-11-08 00:38:57 +01:00 | 15 commits to main since this release

    • New pmoutils crate: Introduced library containing ip_utils and process modules.

    • IP Utilities:

      • Added IpFamily enum (V4, V6, Both) with Clone, Eq, Debug, Hash, Send, Sync.
      • Implemented guess_local_ip returning io::Result<Ipv4Addr>.
      • Updated list_all_ips to accept an IpFamily argument for filtering by IP version.
    • Process Utilities:

      • Added TransportProtocol enum (Tcp, Udp).
      • Added ProcessPortInfo struct with full trait implementations.
      • Implemented find_process_using_port.
    • IP Guessing: Removed hardcoded fallback in guess_local_ip; callers must now handle I/O errors explicitly.

    • Port Lookup: Restricted find_process_using_port to match only TCP sockets in the LISTEN state, ignoring established connections.

    • Updated package version to 0.2.0 across Cargo.toml, Cargo.lock, and version.txt.

    • Added release artifacts api/0.2.0.json and api/0.2.0.txt.

    • Refactored tests for error handling, valid IPv4 results, and IP family filtering.

    < pub fn pmoutils::ip_utils::guess_local_ip() -> alloc::string::String
    < pub fn pmoutils::ip_utils::guess_local_ip_with_timeout(core::time::Duration) -> alloc::string::String
    < pub fn pmoutils::ip_utils::list_all_ips() -> std::collections::hash::map::HashMap<alloc::string::String, alloc::vec::Vec<alloc::string::String>>
    > pub enum pmoutils::ip_utils::IpFamily
    > pub pmoutils::ip_utils::IpFamily::Both
    > pub pmoutils::ip_utils::IpFamily::V4
    > pub pmoutils::ip_utils::IpFamily::V6
    > impl core::clone::Clone for pmoutils::ip_utils::IpFamily
    > pub fn pmoutils::ip_utils::IpFamily::clone(&self) -> pmoutils::ip_utils::IpFamily
    > impl core::cmp::Eq for pmoutils::ip_utils::IpFamily
    > impl core::cmp::PartialEq for pmoutils::ip_utils::IpFamily
    > pub fn pmoutils::ip_utils::IpFamily::eq(&self, &pmoutils::ip_utils::IpFamily) -> bool
    > impl core::fmt::Debug for pmoutils::ip_utils::IpFamily
    > pub fn pmoutils::ip_utils::IpFamily::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
    > impl core::hash::Hash for pmoutils::ip_utils::IpFamily
    > pub fn pmoutils::ip_utils::IpFamily::hash<__H: core::hash::Hasher>(&self, &mut __H)
    > impl core::marker::Copy for pmoutils::ip_utils::IpFamily
    > impl core::marker::StructuralPartialEq for pmoutils::ip_utils::IpFamily
    > impl core::marker::Freeze for pmoutils::ip_utils::IpFamily
    > impl core::marker::Send for pmoutils::ip_utils::IpFamily
    > impl core::marker::Sync for pmoutils::ip_utils::IpFamily
    > impl core::marker::Unpin for pmoutils::ip_utils::IpFamily
    > impl core::marker::UnsafeUnpin for pmoutils::ip_utils::IpFamily
    > impl core::panic::unwind_safe::RefUnwindSafe for pmoutils::ip_utils::IpFamily
    > impl core::panic::unwind_safe::UnwindSafe for pmoutils::ip_utils::IpFamily
    > impl<T, U> core::convert::Into<U> for pmoutils::ip_utils::IpFamily where U: core::convert::From<T>
    > pub fn pmoutils::ip_utils::IpFamily::into(self) -> U
    > impl<T, U> core::convert::TryFrom<U> for pmoutils::ip_utils::IpFamily where U: core::convert::Into<T>
    > pub type pmoutils::ip_utils::IpFamily::Error = never
    > pub fn pmoutils::ip_utils::IpFamily::try_from(U) -> core::result::Result<T, <T as core::convert::TryFrom<U>>::Error>
    > impl<T, U> core::convert::TryInto<U> for pmoutils::ip_utils::IpFamily where U: core::convert::TryFrom<T>
    > pub type pmoutils::ip_utils::IpFamily::Error = <U as core::convert::TryFrom<T>>::Error
    > pub fn pmoutils::ip_utils::IpFamily::try_into(self) -> core::result::Result<U, <U as core::convert::TryFrom<T>>::Error>
    > impl<T> alloc::borrow::ToOwned for pmoutils::ip_utils::IpFamily where T: core::clone::Clone
    > pub type pmoutils::ip_utils::IpFamily::Owned = T
    > pub fn pmoutils::ip_utils::IpFamily::clone_into(&self, &mut T)
    > pub fn pmoutils::ip_utils::IpFamily::to_owned(&self) -> T
    > impl<T> core::any::Any for pmoutils::ip_utils::IpFamily where T: 'static + ?core::marker::Sized
    > pub fn pmoutils::ip_utils::IpFamily::type_id(&self) -> core::any::TypeId
    > impl<T> core::borrow::Borrow<T> for pmoutils::ip_utils::IpFamily where T: ?core::marker::Sized
    > pub fn pmoutils::ip_utils::IpFamily::borrow(&self) -> &T
    > impl<T> core::borrow::BorrowMut<T> for pmoutils::ip_utils::IpFamily where T: ?core::marker::Sized
    > pub fn pmoutils::ip_utils::IpFamily::borrow_mut(&mut self) -> &mut T
    > impl<T> core::clone::CloneToUninit for pmoutils::ip_utils::IpFamily where T: core::clone::Clone
    > pub unsafe fn pmoutils::ip_utils::IpFamily::clone_to_uninit(&self, *mut u8)
    > impl<T> core::convert::From<T> for pmoutils::ip_utils::IpFamily
    > pub fn pmoutils::ip_utils::IpFamily::from(T) -> T
    > impl<T> crossbeam_epoch::atomic::Pointable for pmoutils::ip_utils::IpFamily
    > pub type pmoutils::ip_utils::IpFamily::Init = T
    > pub const pmoutils::ip_utils::IpFamily::ALIGN: usize
    > pub unsafe fn pmoutils::ip_utils::IpFamily::deref<'a>(usize) -> &'a T
    > pub unsafe fn pmoutils::ip_utils::IpFamily::deref_mut<'a>(usize) -> &'a mut T
    > pub unsafe fn pmoutils::ip_utils::IpFamily::drop(usize)
    > pub unsafe fn pmoutils::ip_utils::IpFamily::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    > impl<T> either::into_either::IntoEither for pmoutils::ip_utils::IpFamily
    > impl<T> objc2::rc::autorelease::AutoreleaseSafe for pmoutils::ip_utils::IpFamily where T: ?core::marker::Sized
    > pub fn pmoutils::ip_utils::guess_local_ip() -> core::io::error::Result<core::net::ip_addr::Ipv4Addr>
    > pub fn pmoutils::ip_utils::list_all_ips(pmoutils::ip_utils::IpFamily) -> core::io::error::Result<alloc::collections::btree::map::BTreeMap<alloc::string::String, alloc::vec::Vec<core::net::ip_addr::IpAddr>>>
    < pub fn pmoutils::guess_local_ip() -> alloc::string::String
    < pub fn pmoutils::guess_local_ip_with_timeout(core::time::Duration) -> alloc::string::String
    > pub fn pmoutils::guess_local_ip() -> core::io::error::Result<core::net::ip_addr::Ipv4Addr>
    
    Downloads
  • version-0.1.4 353b520bdc

    version-0.1.4
    All checks were successful
    Release / release (push) Successful in 1m27s
    Stable

    eric released this 2026-11-07 22:29:39 +01:00 | 19 commits to main since this release

    • CI Automation: Introduced automated CI release workflow (.gitea/workflows/release.yaml) for publishing, wiki updates, and Forgejo releases.

    • Build System: Integrated crate-kit build system with new targets (kit-check, kit-update, kit-version) replacing legacy jjnew/jjpush/jjfetch.

    • Process Detection: Refactored src/process.rs to ensure find_process_using_port checks all PIDs and build_process_info refreshes selectively.

    • IP Utilities: Combined connection check and address retrieval logic in guess_local_ip and guess_local_ip_with_timeout.

    • Versioning: Bumped crate version to 0.1.4 across all configuration files (Cargo.toml, Cargo.lock, .crate-kit/VERSION, version.txt).

    • Rust Edition: Updated Rust edition from 2021 to 2024 in Cargo.toml and AGENTS.md.

    • API Stability: Added API snapshots for version 0.1.4 (api/0.1.4.json, api/0.1.4.txt).

    • Exports: Explicitly exported ProcessPortInfo, TransportProtocol, and find_process_using_port from the process module in src/lib.rs.

    • Derives: Added PartialEq, Eq, and Hash derives for ProcessPortInfo.

    • Testing: Added unit tests for UDP/TCP process detection (test_find_process_using_port_udp_finds_current_process, etc.) and transport protocol equality/hashing. Updated existing IP utility tests to correctly iterate over values() and keys().

    • Code Organization: Moved tests module to the end of src/lib.rs.

    • Scripts: Added kit-check.sh for directory integrity verification and forgejo-release.sh for release creation. Updated publish.sh for idempotent publishing/dry-run support and wiki.sh for standard Git commands/API tokens.

    • Documentation: Updated AGENTS.md guidelines and introduced TODO.md for task tracking.

    > impl core::cmp::Eq for pmoutils::process::TransportProtocol
    > impl core::cmp::PartialEq for pmoutils::process::TransportProtocol
    > pub fn pmoutils::process::TransportProtocol::eq(&self, &pmoutils::process::TransportProtocol) -> bool
    > impl core::hash::Hash for pmoutils::process::TransportProtocol
    > pub fn pmoutils::process::TransportProtocol::hash<__H: core::hash::Hasher>(&self, &mut __H)
    > impl core::marker::StructuralPartialEq for pmoutils::process::TransportProtocol
    > impl core::cmp::Eq for pmoutils::process::ProcessPortInfo
    > impl core::cmp::PartialEq for pmoutils::process::ProcessPortInfo
    > pub fn pmoutils::process::ProcessPortInfo::eq(&self, &pmoutils::process::ProcessPortInfo) -> bool
    > impl core::marker::StructuralPartialEq for pmoutils::process::ProcessPortInfo
    > impl core::cmp::Eq for pmoutils::process::TransportProtocol
    > impl core::cmp::PartialEq for pmoutils::process::TransportProtocol
    > pub fn pmoutils::process::TransportProtocol::eq(&self, &pmoutils::process::TransportProtocol) -> bool
    > impl core::hash::Hash for pmoutils::process::TransportProtocol
    > pub fn pmoutils::process::TransportProtocol::hash<__H: core::hash::Hasher>(&self, &mut __H)
    > impl core::marker::StructuralPartialEq for pmoutils::process::TransportProtocol
    > impl core::cmp::Eq for pmoutils::process::ProcessPortInfo
    > impl core::cmp::PartialEq for pmoutils::process::ProcessPortInfo
    > pub fn pmoutils::process::ProcessPortInfo::eq(&self, &pmoutils::process::ProcessPortInfo) -> bool
    > impl core::marker::StructuralPartialEq for pmoutils::process::ProcessPortInfo
    
    Downloads