Skip to content

Commit b996ee4

Browse files
committed
Bump to version 25.08.26 (matrix-rust-sdk/main f4ce4356ab674ad33177fa5548813d9638dbe4cb)
1 parent d30c54a commit b996ee4

File tree

3 files changed

+489
-410
lines changed

3 files changed

+489
-410
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// swift-tools-version:5.5
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33
import PackageDescription
4-
let checksum = "b8d390daa776a1832133859dc4809adcd188b98c9590de014dc157532b6a5171"
5-
let version = "25.08.04"
4+
let checksum = "77fc9aefc7aabbadd17255a36e2944ca8ea2b5d86d41fd20e956d37296811d83"
5+
let version = "25.08.26"
66
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
77
let package = Package(
88
name: "MatrixRustSDK",

Sources/MatrixRustSDK/matrix_sdk.swift

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,78 @@ public func FfiConverterTypeRoomPowerLevelChanges_lower(_ value: RoomPowerLevelC
768768
}
769769

770770

771+
/**
772+
* Information about the server vendor obtained from the federation API.
773+
*/
774+
public struct ServerVendorInfo {
775+
/**
776+
* The server name.
777+
*/
778+
public var serverName: String
779+
/**
780+
* The server version.
781+
*/
782+
public var version: String
783+
784+
// Default memberwise initializers are never public by default, so we
785+
// declare one manually.
786+
public init(
787+
/**
788+
* The server name.
789+
*/serverName: String,
790+
/**
791+
* The server version.
792+
*/version: String) {
793+
self.serverName = serverName
794+
self.version = version
795+
}
796+
}
797+
798+
799+
800+
extension ServerVendorInfo: Equatable, Hashable {
801+
public static func ==(lhs: ServerVendorInfo, rhs: ServerVendorInfo) -> Bool {
802+
if lhs.serverName != rhs.serverName {
803+
return false
804+
}
805+
if lhs.version != rhs.version {
806+
return false
807+
}
808+
return true
809+
}
810+
811+
public func hash(into hasher: inout Hasher) {
812+
hasher.combine(serverName)
813+
hasher.combine(version)
814+
}
815+
}
816+
817+
818+
public struct FfiConverterTypeServerVendorInfo: FfiConverterRustBuffer {
819+
public static func read(from buf: inout (data: Data, offset: Data.Index)) throws -> ServerVendorInfo {
820+
return
821+
try ServerVendorInfo(
822+
serverName: FfiConverterString.read(from: &buf),
823+
version: FfiConverterString.read(from: &buf)
824+
)
825+
}
826+
827+
public static func write(_ value: ServerVendorInfo, into buf: inout [UInt8]) {
828+
FfiConverterString.write(value.serverName, into: &buf)
829+
FfiConverterString.write(value.version, into: &buf)
830+
}
831+
}
832+
833+
834+
public func FfiConverterTypeServerVendorInfo_lift(_ buf: RustBuffer) throws -> ServerVendorInfo {
835+
return try FfiConverterTypeServerVendorInfo.lift(buf)
836+
}
837+
838+
public func FfiConverterTypeServerVendorInfo_lower(_ value: ServerVendorInfo) -> RustBuffer {
839+
return FfiConverterTypeServerVendorInfo.lower(value)
840+
}
841+
842+
771843
/**
772844
* Properties to create a new virtual Element Call widget.
773845
*/

0 commit comments

Comments
 (0)