-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include src/ldk_node/libldk_node.dylib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[project] | ||
name = "ldk_node" | ||
version = "0.1-alpha.1" | ||
authors = [ | ||
{ name="Elias Rohrer", email="dev@tnull.de" }, | ||
] | ||
description = "A ready-to-go Lightning node library built using LDK and BDK." | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
classifiers = [ | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Security :: Cryptography", | ||
"License :: OSI Approved :: MIT License", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://lightningdevkit.org/" | ||
"Github" = "https://github.com/lightningdevkit/ldk-node" | ||
"Bug Tracker" = "https://github.com/lightningdevkit/ldk-node/issues" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[options] | ||
packages = find: | ||
package_dir = | ||
= src | ||
include_package_data = True | ||
|
||
[options.packages.find] | ||
where = src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from ldk_node import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
BINDINGS_DIR="./bindings/python" | ||
BINDINGS_DIR="./bindings/python/src/ldk_node" | ||
UNIFFI_BINDGEN_BIN="cargo run --features=uniffi/cli --bin uniffi-bindgen" | ||
|
||
cargo build --release --features uniffi || exit 1 | ||
cargo build --profile release-smaller --features uniffi || exit 1 | ||
$UNIFFI_BINDGEN_BIN generate bindings/ldk_node.udl --language python -o "$BINDINGS_DIR" || exit 1 | ||
cp ./target/release/libldk_node.dylib "$BINDINGS_DIR"/libldk_node.dylib || exit 1 |