Skip to content

swift-systemd v0.4.1

Latest

Choose a tag to compare

@lhoward lhoward released this 29 Sep 11:04

Changes since 0.4.0

Swift 6 strict concurrency

  • SystemdBus is Sendable end-to-end. Callers in any isolated context can now await its methods without Sendable diagnostics. SystemdTypeRepresentable refines Sendable, and ObjectPath and Signature are Sendable. (e1e5647)
  • No strict-concurrency warnings in SystemdBus. The package still uses swift-tools 5.7; these were errors in the Swift 6 language mode. (17a40ac)

Source-breaking changes

  • callMethod, getProperty, getProperties and callManagerMethod return (any Sendable)? instead of Any?, and take [any Sendable] instead of [Any] for fields. (e1e5647)
  • The service-control wrappers (startUnit, stopUnit, reloadUnit, restartUnit, tryRestartUnit, reloadOrRestartUnit, reloadOrTryRestartUnit) return the job's ObjectPath? instead of Any?. (e1e5647)
  • The internal AnyHashable: SystemdTypeRepresentable conformance is removed. It was unused, and AnyHashable can't be Sendable. (17a40ac)