• version-0.2.4 2ec5a3caaa

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

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

    • Per-Interface LOCATION Support: Server notifications now send a LOCATION header specific to the active IPv4 interface address from which they are sent.

    • Multi-Interface Multicast: The server iterates over all active non-loopback IPv4 interfaces to join multicast groups and send announcements (M-SEARCH responses).

    • Version Update: Bumped package version to 0.2.4.

    • API Snapshot: Updated public API snapshot (api/0.2.4.json.gz) and removed extensive trait implementations (Into, TryFrom, CloneToUninit, Any, Borrow) for SsdpEvent, SsdpClient, and SsdpDevice.

    • Build Scripts: Modified api-level.sh and api-snapshot.sh to use cargo public-api -s for excluding generic implementations.

    • Server Logic Refactoring: Refactored src/server.rs to support per-interface location determination via the new location_for helper and diffuser mechanism.

    • Documentation: Updated src/lib.rs and README.md to reflect per-interface server behavior and client interface selection.

    • Added comprehensive tests in tests/multicast.rs:

      • interfaces
      • appareil_sur_une_adresse
      • hote
      • les_annonces_portent_l_adresse_de_l_interface_d_emission
      • la_reponse_a_un_msearch_porte_l_adresse_qui_joint_le_demandeur
    > pub fn pmossdp::SsdpDevice::location_for(&self, core::net::ip_addr::Ipv4Addr) -> alloc::string::String
    > pub fn pmossdp::SsdpDevice::with_fixed_location(self) -> Self
    
    Downloads
  • version-0.2.3 3cfcf9ca82

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

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

    • SSDP Client/Server Implementation: Introduced core pmossdp crate functionality supporting SSDP discovery, announcements, and M-SEARCH operations.

    • Public API Definition: Added api/0.2.3.txt defining the public API surface, including:

      • SsdpEvent enum
      • SsdpClient struct
      • SsdpDevice struct
      • SsdpServer struct
    • API Snapshots: Added api/0.2.3.json.gz binary file for the new release.

    • Bumped pmossdp version to 0.2.3 in Cargo.toml and Cargo.lock.

    • Updated .crate-kit/VERSION from 0.1.14 to 0.1.15.

    • Bumped pmoutils dependency to 0.2.6.

    Downloads
  • version-0.2.2 21fd3b4857

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

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

    • API Snapshot Compression: Migrated public API snapshot storage from uncompressed JSON to gzipped .json.gz files for improved efficiency.

    • Dependency Updates: Updated dependencies, including if-addrs.

    • Build Scripts: Updated build scripts (.crate-kit/scripts/api-level.sh, api-snapshot.sh, common.sh) to correctly handle decompression of baseline JSON and generation of compressed snapshots.

    • Test Targets: Added --all-features flags to test, test-doc, doc, and doc-build targets in crate.mk.

    • Version Bump: Updated Cargo.toml and Cargo.lock to version 0.2.2.

    • Cleanup: Removed legacy uncompressed api/*.json files (versions 0.1.0–0.2.1) in favor of new .json.gz snapshots.

    • Refactoring: Refactored jjfetch.sh to handle divergent revisions merged into base; added DEPS_CHECK_EXTERNAL_IGNORE logic.

    • Documentation: Updated README.md with details on code organization, port sharing, async safety, and new make targets; removed superseded AGENTS.md.

    Downloads
  • version-0.2.1 75a0141c55

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

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

    • Bump socket2 dependency to version 0.6.

    • Add if-addrs (v0.15) dependency for interface address discovery.

    • Introduce dependency validation scripts: deps-check.sh, deps-check-external.sh, and deps-lib.sh.

    • Add phony targets deps-check and deps-bump in dev-patch.mk.

    • Update CI watch pipeline and release scripts (jjpush/jjrelease) to execute dependency checks.

    • Refactor build scripts: move filtre_instable from api-level.sh to common.sh.

    • Update AGENTS.md: remove obsolete socket2 options, document if-addrs interfaces.

    • Add public API documentation for version 0.2.1 (api/0.2.1.json, api/0.2.1.txt).

    < impl<T> crossbeam_epoch::atomic::Pointable for pmossdp::SsdpEvent
    < pub type pmossdp::SsdpEvent::Init = T
    < pub const pmossdp::SsdpEvent::ALIGN: usize
    < pub unsafe fn pmossdp::SsdpEvent::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmossdp::SsdpEvent::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmossdp::SsdpEvent::drop(usize)
    < pub unsafe fn pmossdp::SsdpEvent::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmossdp::SsdpEvent
    < impl<T> crossbeam_epoch::atomic::Pointable for pmossdp::SsdpClient
    < pub type pmossdp::SsdpClient::Init = T
    < pub const pmossdp::SsdpClient::ALIGN: usize
    < pub unsafe fn pmossdp::SsdpClient::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmossdp::SsdpClient::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmossdp::SsdpClient::drop(usize)
    < pub unsafe fn pmossdp::SsdpClient::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmossdp::SsdpClient
    < impl<T> crossbeam_epoch::atomic::Pointable for pmossdp::SsdpDevice
    < pub type pmossdp::SsdpDevice::Init = T
    < pub const pmossdp::SsdpDevice::ALIGN: usize
    < pub unsafe fn pmossdp::SsdpDevice::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmossdp::SsdpDevice::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmossdp::SsdpDevice::drop(usize)
    < pub unsafe fn pmossdp::SsdpDevice::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmossdp::SsdpDevice
    < impl<T> crossbeam_epoch::atomic::Pointable for pmossdp::SsdpServer
    < pub type pmossdp::SsdpServer::Init = T
    < pub const pmossdp::SsdpServer::ALIGN: usize
    < pub unsafe fn pmossdp::SsdpServer::deref<'a>(usize) -> &'a T
    < pub unsafe fn pmossdp::SsdpServer::deref_mut<'a>(usize) -> &'a mut T
    < pub unsafe fn pmossdp::SsdpServer::drop(usize)
    < pub unsafe fn pmossdp::SsdpServer::init(<T as crossbeam_epoch::atomic::Pointable>::Init) -> usize
    < impl<T> either::into_either::IntoEither for pmossdp::SsdpServer
    
    Downloads
  • version-0.2.0 318ccaa88c

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

    eric released this 2026-11-08 07:21:39 +01:00 | 9 commits to main since this release

    • Device Structure: Refactored SsdpDevice to support UPnP 1.1 fields (config_id, device_type, location, server, notification_types). Removed get_notification_types in favor of accessor methods.

    • Server Headers: Added boot_id and en_tetes_11 functions in src/server.rs to generate UPnP 1.1 headers and calculate device IDs based on system uptime.

    • Announcements: Updated announcement intervals to random values between 7.5 and 15 minutes.

    • Stop Mechanism: Introduced a stop flag in SsdpClient to manage the event loop lifecycle.

    • Event Loop: Updated run_event_loop and lire_annonces to respect the stop signal. The main logic now runs the event loop in a dedicated thread and exits upon client.stop().

    • IPv4 Constraint: Explicitly documented IPv4-only constraints for network interfaces.

    • Address Construction: Refactored src/client.rs to use SocketAddr::from for address construction.

    • Multicast Interface: Clarified multicast interface handling behavior.

    • Bumped package version from 0.1.2 to 0.2.0.

    • Updated Rust edition to 2024 in Cargo.toml.

    • Library Docs: Revised module documentation in src/lib.rs regarding network interfaces, UPnP versions, server shutdown logic (byebye on destruction), client stop logic, and tracing levels.

    • API Specification: Added api/0.2.0.json and api/0.2.0.txt defining SsdpEvent, SsdpClient, SsdpDevice, SsdpServer, and constants such as MAX_AGE.

    • Metadata: Updated AGENTS.md and TODO.md to reflect naming conventions, non-exhaustive enum handling, and pending work for SsdpEvent::Update.

    • Updated tests/multicast.rs to use new accessor methods.

    • Added verification for UPnP 1.1 header emission in multicast scenarios (sequential handling on port 1900).

    < pub enum pmossdp::SsdpEvent
    > #[non_exhaustive] pub enum pmossdp::SsdpEvent
    < pub fn pmossdp::SsdpClient::run_event_loop<F>(&self, F) -> never where F: core::ops::function::FnMut(pmossdp::SsdpEvent) + core::marker::Send + 'static
    > pub fn pmossdp::SsdpClient::run_event_loop<F>(&self, F) where F: core::ops::function::FnMut(pmossdp::SsdpEvent)
    > pub fn pmossdp::SsdpClient::stop(&self)
    < pub pmossdp::SsdpDevice::device_type: alloc::string::String
    < pub pmossdp::SsdpDevice::location: alloc::string::String
    < pub pmossdp::SsdpDevice::notification_types: alloc::vec::Vec<alloc::string::String>
    < pub pmossdp::SsdpDevice::server: alloc::string::String
    < pub pmossdp::SsdpDevice::uuid: alloc::string::String
    < pub fn pmossdp::SsdpDevice::get_notification_types(&self) -> &[alloc::string::String]
    > pub fn pmossdp::SsdpDevice::config_id(&self) -> core::option::Option<u32>
    > pub fn pmossdp::SsdpDevice::device_type(&self) -> &str
    > pub fn pmossdp::SsdpDevice::location(&self) -> &str
    > pub fn pmossdp::SsdpDevice::notification_types(&self) -> &[alloc::string::String]
    > pub fn pmossdp::SsdpDevice::server(&self) -> &str
    > pub fn pmossdp::SsdpDevice::uuid(&self) -> &str
    > pub fn pmossdp::SsdpDevice::with_config_id(self, u32) -> Self
    > pub fn pmossdp::SsdpDevice::without_root_device(self) -> Self
    < pub const pmossdp::SSDP_MULTICAST_ADDR: &str
    > pub const pmossdp::SSDP_MULTICAST_ADDR: core::net::ip_addr::Ipv4Addr
    
    Downloads
  • version-0.1.2 36a08a6c2b

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

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

    • Implement core SSDP API (api/0.1.2.txt) defining SsdpEvent, SsdpClient, SsdpDevice, and SsdpServer with necessary constants and trait implementations.

    • Update Rust edition to 2024.

    • Remove 5ms sleep in announce_device loop to prevent macOS UDP buffer saturation and allow immediate notification sending.

    Downloads
  • version-0.1.1 cf423c8405

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

    eric released this 2026-11-08 04:06:33 +01:00 | 15 commits to main since this release

    • Initial Release (v0.1.0): Introduced pmossdp library implementing SSDP for UPnP discovery and announcements. Includes SsdpServer, SsdpClient, and SsdpDevice structs with multicast support for Unix and Windows platforms.

    • API Documentation: Added public API snapshots (api/0.1.0.txt, api/0.1.0.json) and detailed documentation for SsdpEvent, SsdpClient, and SsdpServer.

    • Server Stability: Made start method idempotent; replaced unsafe set_reuse_port; handled lock poisoning in add_device.

    • Protocol Compliance: Enforced UPnP 1.1 headers in send_alive; improved case insensitivity in handle_msearch.

    • Client Logic: Clarified SsdpEvent fields and new multicast logic; refined send_msearch MX bounds and run_event_loop timeout handling.

    • Version Updates: Bumped library version through 0.1.4 to final 0.1.5.

    • Build System: Refactored jjfetch Makefile target to delegate logic to .crate-kit/scripts/jjfetch.sh for improved maintainability; updated dependencies (e.g., pmoutils to 0.2.2).

    • Dependencies: Added socket2 features and removed chrono from Cargo.toml.

    • Documentation: Updated README.md, AGENTS.md, and TODO.md to reflect new architecture, IPv4/SSDP focus, and specific client/server behaviors (NOTIFY limitations, fixed interfaces).

    > impl core::cmp::Eq for pmossdp::SsdpEvent
    > impl core::cmp::PartialEq for pmossdp::SsdpEvent
    > pub fn pmossdp::SsdpEvent::eq(&self, &pmossdp::SsdpEvent) -> bool
    > impl core::marker::StructuralPartialEq for pmossdp::SsdpEvent
    > impl core::cmp::Eq for pmossdp::SsdpDevice
    > impl core::cmp::PartialEq for pmossdp::SsdpDevice
    > pub fn pmossdp::SsdpDevice::eq(&self, &pmossdp::SsdpDevice) -> bool
    > impl core::marker::StructuralPartialEq for pmossdp::SsdpDevice
    > impl core::fmt::Debug for pmossdp::SsdpServer
    > pub fn pmossdp::SsdpServer::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result
    < impl core::marker::Freeze for pmossdp::SsdpServer
    > impl !core::marker::Freeze for pmossdp::SsdpServer
    
    Downloads