Skip to content

Commit e8dc387

Browse files
committed
Test auto-generating binding files again.
1 parent 2394e89 commit e8dc387

File tree

261 files changed

+9
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

261 files changed

+9
-523
lines changed

.github/workflows/swift.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ jobs:
6262
python ci/fix_header_includes.py
6363
- name: Generate (copy for debugging) Swift bindings and copy batteries
6464
run: |
65-
# python ./ # Generate bindings
65+
python ./ # Generate bindings
6666
6767
# TODO: switch back to generation method after debugging
68-
mkdir -p ci/LDKSwift/Sources/LDKSwift
69-
cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
68+
# mkdir -p ci/LDKSwift/Sources/LDKSwift
69+
# cp -a bindings/LDK/. ci/LDKSwift/Sources/LDKSwift
7070
7171
cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
7272
env:

bindings/LDK/Bindings.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import Foundation
9-
import LDKHeaders
109

1110
public typealias LDKTransactionOutputs = LDKC2Tuple_TxidCVec_C2Tuple_u32TxOutZZZ
1211
public typealias LDKTxid = LDKThirtyTwoBytes
@@ -3708,7 +3707,7 @@ public class Bindings{
37083707
/* CONVERSION_PREP */
37093708
array.append(currentEntry)
37103709
}
3711-
nativeType.data.deallocate()
3710+
/* RUST_PRIMITIVE_CLEANUP */
37123711
return array
37133712
}
37143713
/* RUST_TO_SWIFT_END */
@@ -3988,7 +3987,7 @@ withUnsafePointer(to: htlc.cOpaqueStruct!) { (htlcPointer: UnsafePointer<LDKHTLC
39883987
let dataContainer = UnsafeMutablePointer<UInt8>.allocate(capacity: array.count)
39893988
dataContainer.initialize(from: array, count: array.count)
39903989

3991-
let vector = LDKTransaction(data: dataContainer, datalen: UInt(array.count), data_is_owned: false)
3990+
let vector = LDKTransaction(data: dataContainer, datalen: UInt(array.count), data_is_owned: true)
39923991
let wrapper = LDKTransactionWrapper(pointer: vector)
39933992
return wrapper
39943993
}

bindings/LDK/options/APIError.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class APIError: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/ErrorAction.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class ErrorAction: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/Event.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class Event: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/Fallback.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class Fallback: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/HTLCFailChannelUpdate.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class HTLCFailChannelUpdate: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/MessageSendEvent.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class MessageSendEvent: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/MonitorEvent.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class MonitorEvent: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

bindings/LDK/options/NetAddress.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import LDKHeaders
2-
31
public class NetAddress: NativeTypeWrapper {
42

53
private static var instanceCounter: UInt = 0

0 commit comments

Comments
 (0)