mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-29 03:44:27 +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>
44 lines
1015 B
TOML
44 lines
1015 B
TOML
[profile.release]
|
|
lto = true
|
|
opt-level = "z" # Optimize for size.
|
|
codegen-units = 1 # Reduce Parallel Code Generation Units to Increase Optimization
|
|
panic = "abort" # Abort on panic, as unwinding code does require extra binary size
|
|
rpath = true
|
|
|
|
[profile.frb]
|
|
inherits = "release"
|
|
strip = true # Automatically strip symbols from the binary.
|
|
opt-level = 3
|
|
lto = "thin"
|
|
debug = 0
|
|
split-debuginfo = "unpacked"
|
|
incremental = false
|
|
|
|
[profile.frb-min]
|
|
inherits = "frb"
|
|
opt-level = "z" # Optimize for size.
|
|
lto = true
|
|
|
|
[workspace]
|
|
members = [
|
|
"bindings",
|
|
"bindings/langs/react-native",
|
|
"core",
|
|
]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.0.1"
|
|
|
|
[workspace.dependencies]
|
|
anyhow = "1.0"
|
|
log = "0.4.20"
|
|
once_cell = "1.19"
|
|
thiserror = "1.0"
|
|
uniffi = "0.27.1"
|
|
uniffi_macros = "0.27.1"
|
|
|
|
[patch.crates-io]
|
|
# https://github.com/BlockstreamResearch/rust-secp256k1-zkp/pull/48/commits
|
|
secp256k1-zkp = {git = "https://github.com/sanket1729/rust-secp256k1-zkp.git", rev = "60e631c24588a0c9e271badd61959294848c665d"}
|