Skip to content

Commit 47b2425

Browse files
committed
Add simple C bindings and some (horrid) code to generate them
1 parent a2a80d3 commit 47b2425

28 files changed

+5551
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
members = [
44
"lightning",
55
"lightning-net-tokio",
6+
"lightning-c-bindings",
67
]
78

89
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it

c-bindings-gen/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "c-bindings-gen"
3+
version = "0.0.1"
4+
authors = ["Matt Corallo"]
5+
edition = "2018"
6+
7+
[dependencies]
8+
syn = { version = "1", features = ["full", "extra-traits"] }
9+
proc-macro2 = "1"
10+
11+
# We're not in the workspace as we're just a binary code generator:
12+
[workspace]

0 commit comments

Comments
 (0)