mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-03 22:34:20 +01:00
* Add SDK global logger * Add bindings * Fix path to internal uniffi log * Exclude "set_log_stream" from generated RN methods * Move logger-specific structs to a separate module * Delegate init_logging to method in logger.rs * Rename uniffi BindingLogger to UniffiBindingLogger * Add set_log_stream for dart bindings * Add SDK logger to Dart bindings * Rename dart binding logger to DartBindingLogger * Add rustdocs * RN bindings: Add manual handling for setLogStream() * Re-generate dart bindings * Re-generate RN bindings * Remove LOG_INIT cell * Set global maximum log level once on initialization Return a LiquidSdkError::Generic instead of Anyhow error when initializing log stream on Dart bindings * Do not panic when initializing binding loggers * Rename LogStream to Logger --------- Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
29 lines
885 B
TOML
29 lines
885 B
TOML
[package]
|
|
name = "breez-liquid-sdk-bindings"
|
|
edition = "2021"
|
|
version.workspace = true
|
|
|
|
[[bin]]
|
|
name = "uniffi-bindgen"
|
|
path = "uniffi-bindgen.rs"
|
|
|
|
[lib]
|
|
name = "breez_liquid_sdk_bindings"
|
|
crate-type = ["staticlib", "cdylib", "lib"]
|
|
|
|
[dependencies]
|
|
anyhow = { workspace = true }
|
|
breez-liquid-sdk = { path = "../core" }
|
|
log = { workspace = true }
|
|
uniffi = { workspace = true, features = [ "bindgen-tests", "cli" ] }
|
|
# Bindgen used by KMP, version has to match the one supported by KMP
|
|
uniffi_bindgen = "0.25.2"
|
|
uniffi-kotlin-multiplatform = { git = "https://gitlab.com/trixnity/uniffi-kotlin-multiplatform-bindings", rev = "55d51f3abf9819b32bd81756053dcfc10f8d5522" }
|
|
camino = "1.1.1"
|
|
thiserror = { workspace = true }
|
|
tokio = { version = "1", features = ["rt"] }
|
|
once_cell = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
uniffi = { workspace = true, features = [ "build" ] }
|
|
glob = "0.3.1" |