format toml files

This commit is contained in:
irriden
2023-06-17 19:20:52 +00:00
parent 17c31c2a02
commit 289f7ebfbb
7 changed files with 120 additions and 128 deletions

View File

@@ -1,39 +1,26 @@
[workspace] [workspace]
exclude = ["broker", "tester"]
members = ["factory", "sphinx-key"]
resolver = "2" resolver = "2"
members = [
"factory",
"sphinx-key",
]
exclude = [
"broker",
"persister",
"tester",
]
[workspace.package]
edition = "2021"
rust-version = "1.66"
[workspace.dependencies] [workspace.dependencies]
esp-idf-sys = { version = "0.33.1", features = ["binstart"] } anyhow = { version = "1", features = ["backtrace"] }
esp-idf-svc = { version = "0.46.0", features = ["experimental", "alloc"] } bitflags = "1.3.2"
esp-idf-hal = "0.41.1"
embedded-svc = "0.25.0"
embedded-hal = "=1.0.0-alpha.10" embedded-hal = "=1.0.0-alpha.10"
anyhow = { version = "1", features = ["backtrace"]} embedded-svc = "0.25.0"
log = "0.4.17" embuild = "0.31.2"
bitflags = "1.3.2" esp-idf-hal = "0.41.1"
embuild = "0.31.2" esp-idf-svc = { version = "0.46.0", features = ["experimental", "alloc"] }
esp-idf-sys = { version = "0.33.1", features = ["binstart"] }
log = "0.4.17"
[profile.release] [profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true
codegen-units = 1 codegen-units = 1
panic = "abort" lto = true
opt-level = "z" # Optimize for size.
panic = "abort"
strip = true # Automatically strip symbols from the binary.
[profile.dev] [profile.dev]
debug = true # Symbols are nice and they don't increase the size on Flash debug = true # Symbols are nice and they don't increase the size on Flash
opt-level = "z" opt-level = "z"

View File

@@ -1,42 +1,45 @@
[package] [package]
name = "sphinx-key-broker"
version = "0.1.0"
edition = "2021"
default-run = "sphinx-key-broker" default-run = "sphinx-key-broker"
edition = "2021"
name = "sphinx-key-broker"
version = "0.1.0"
[profile.release] [profile.release]
strip = "debuginfo" strip = "debuginfo"
[dependencies] [dependencies]
sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs" } anyhow = { version = "1", features = ["backtrace"] }
lss-connector = { git = "https://github.com/stakwork/sphinx-rs" } async-trait = "0.1"
# lss-connector = { path = "../../sphinx-rs/lss-connector" } bitcoin = "0.29.0"
vls-protocol = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" } chrono = "0.4"
vls-proxy = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" } clap = "3.2"
vls-frontend = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" } clap_derive = "3.2"
vls-protocol-client = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" } confy = "0.4.0"
rumqttd = { git = "https://github.com/Evanfeenstra/rumqtt", branch = "sphinx-2" } fern = { version = "0.6", features = ["colored"] }
hex = "0.4.3"
log = "0.4"
once_cell = "1.12.0"
pretty_env_logger = "0.4.0" pretty_env_logger = "0.4.0"
confy = "0.4.0" rocket = { version = "0.5.0-rc.2", features = ["json"] }
secp256k1 = { version = "0.24.0", features = ["rand-std", "bitcoin_hashes"] } rumqttc = "0.12.0"
anyhow = {version = "1", features = ["backtrace"]} rumqttd = { git = "https://github.com/Evanfeenstra/rumqtt", branch = "sphinx-2" }
log = "0.4" secp256k1 = { version = "0.24.0", features = ["rand-std", "bitcoin_hashes"] }
fern = { version = "0.6", features = ["colored"] } serde = { version = "1.0", features = ["derive"] }
rumqttc = "0.12.0" serde_json = "1.0"
clap = "3.2" thiserror = "1.0.31"
clap_derive = "3.2" toml = "0.5.9"
chrono = "0.4" url = { version = "2.2" }
once_cell = "1.12.0"
bitcoin = "0.29.0" vls-frontend = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" }
async-trait = "0.1" vls-protocol = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" }
url = { version = "2.2" } vls-protocol-client = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" }
toml = "0.5.9" vls-proxy = { git = "https://gitlab.com/lightning-signer/validating-lightning-signer.git", rev = "b355d2235b4ff0a223820e16889ba9cf939c0752" }
rocket = {version = "0.5.0-rc.2", features = ["json"]}
thiserror = "1.0.31" lss-connector = { git = "https://github.com/stakwork/sphinx-rs" }
hex = "0.4.3" sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs" }
serde = { version = "1.0", features = ["derive"] } # lss-connector = { path = "../../sphinx-rs/lss-connector" }
serde_json = "1.0" # sphinx-signer = { path = "../../sphinx-rs/signer" }
[features] [features]
default = ["std"] default = ["std"]
std = ["vls-protocol/std"] std = ["vls-protocol/std"]

View File

@@ -2,14 +2,14 @@
target = "riscv32imc-esp-espidf" target = "riscv32imc-esp-espidf"
[target.riscv32imc-esp-espidf] [target.riscv32imc-esp-espidf]
linker = "ldproxy" linker = "ldproxy"
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"] rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
[unstable] [unstable]
build-std = ["std", "panic_abort"] build-std = ["std", "panic_abort"]
[env] [env]
ESP_IDF_VERSION = "tag:v5.0.2" ESP_IDF_SDKCONFIG_DEFAULTS = "factory/sdkconfig.defaults"
MCU = { value = "esp32c3" } ESP_IDF_VERSION = "tag:v5.0.2"
MCU = { value = "esp32c3" }

View File

@@ -1,19 +1,19 @@
[package] [package]
name = "sphinx-key-factory" authors = ["decentclock <decentclock.5uh2k@slmail.me>"]
version = "0.1.0" edition = "2021"
authors = ["decentclock <decentclock.5uh2k@slmail.me>"] name = "sphinx-key-factory"
edition.workspace = true rust-version = "1.66"
rust-version.workspace = true version = "0.1.0"
[dependencies] [dependencies]
esp-idf-sys.workspace = true anyhow.workspace = true
esp-idf-svc.workspace = true bitflags.workspace = true
esp-idf-hal.workspace = true
embedded-svc.workspace = true
embedded-hal.workspace = true embedded-hal.workspace = true
anyhow.workspace = true embedded-svc.workspace = true
log.workspace = true esp-idf-hal.workspace = true
bitflags.workspace = true esp-idf-svc.workspace = true
esp-idf-sys.workspace = true
log.workspace = true
[build-dependencies] [build-dependencies]
embuild.workspace = true embuild.workspace = true

View File

@@ -2,16 +2,16 @@
target = "riscv32imc-esp-espidf" target = "riscv32imc-esp-espidf"
[target.riscv32imc-esp-espidf] [target.riscv32imc-esp-espidf]
linker = "ldproxy" linker = "ldproxy"
# runner = "espflash --monitor" # Select this runner for espflash v1.x.x runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
runner = "espflash flash --monitor" # Select this runner for espflash v2.x.x
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"] rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
[unstable] [unstable]
build-std = ["std", "panic_abort"] build-std = ["std", "panic_abort"]
[env] [env]
ESP_IDF_VERSION = "tag:v5.0.2" CC = { value = "../.embuild/espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc", relative = true }
MCU = { value = "esp32c3" } CFLAGS = { value = "-fno-pic" }
CC = { value = "../.embuild/espressif/tools/riscv32-esp-elf/esp-2022r1-11.2.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc", relative = true } ESP_IDF_SDKCONFIG_DEFAULTS = "sphinx-key/sdkconfig.defaults"
CFLAGS = { value = "-fno-pic" } ESP_IDF_VERSION = "tag:v5.0.2"
MCU = { value = "esp32c3" }

View File

@@ -1,37 +1,38 @@
[package] [package]
name = "sphinx-key" authors = ["Evan Feenstra <evanfeenstra@gmail.com>"]
version = "0.1.0" edition = "2021"
authors = ["Evan Feenstra <evanfeenstra@gmail.com>"] name = "sphinx-key"
edition.workspace = true rust-version = "1.66"
rust-version.workspace = true version = "0.1.0"
[features] [features]
default = ["std"] default = ["std"]
std = ["sphinx-signer"]
pingpong = []
no_persist = [] no_persist = []
pingpong = []
std = ["sphinx-signer"]
[dependencies] [dependencies]
# sphinx-signer = { path = "../../sphinx-rs/signer", optional = true } hex = "0.4.3"
sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs.git", optional = true } rmp-serde = "1.1.0"
# lss-connector = { path = "../../sphinx-rs/lss-connector", default-features = false } serde = { version = "1.0.137", default-features = false }
lss-connector = { git = "https://github.com/stakwork/sphinx-rs.git", default-features = false } serde_json = { version = "1.0.81", default-features = false }
sphinx-crypter = { git = "https://github.com/stakwork/sphinx-rs.git" }
url = "2"
serde_urlencoded = "0.7.1" serde_urlencoded = "0.7.1"
serde = { version = "1.0.137", default-features = false } url = "2"
serde_json = { version = "1.0.81", default-features = false }
hex = "0.4.3"
rmp-serde = "1.1.0"
bitflags.workspace = true lss-connector = { git = "https://github.com/stakwork/sphinx-rs.git", default-features = false }
esp-idf-sys.workspace = true # lss-connector = { path = "../../sphinx-rs/lss-connector", default-features = false }
embedded-svc.workspace = true sphinx-crypter = { git = "https://github.com/stakwork/sphinx-rs.git" }
esp-idf-svc.workspace = true sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs.git", optional = true }
esp-idf-hal.workspace = true # sphinx-signer = { path = "../../sphinx-rs/signer", optional = true }
anyhow.workspace = true
bitflags.workspace = true
embedded-hal.workspace = true embedded-hal.workspace = true
anyhow.workspace = true embedded-svc.workspace = true
log.workspace = true esp-idf-hal.workspace = true
esp-idf-svc.workspace = true
esp-idf-sys.workspace = true
log.workspace = true
[build-dependencies] [build-dependencies]
embuild.workspace = true embuild.workspace = true

View File

@@ -1,32 +1,33 @@
[package] [package]
name = "sphinx-key-tester"
version = "0.1.0"
authors = ["Evan Feenstra <evanfeenstra@gmail.com>"] authors = ["Evan Feenstra <evanfeenstra@gmail.com>"]
edition = "2018" edition = "2018"
name = "sphinx-key-tester"
version = "0.1.0"
[dependencies] [dependencies]
anyhow = { version = "1", features = ["backtrace"] }
chrono = "0.4"
clap = "=3.0.0-beta.2"
clap_derive = "=3.0.0-beta.5"
dotenv = "0.15.0"
fern = { version = "0.6", features = ["colored"] }
hex = "0.4.3"
log = "0.4"
pretty_env_logger = "0.4.0"
rand = "0.8"
reqwest = { version = "0.11.11", features = ["json"] }
rmp-serde = "1.1.0"
rocket = "0.5.0-rc.2"
rumqttc = "0.12.0"
serde = { version = "1.0.101", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.4.0", features = ["rt", "rt-multi-thread", "macros"] }
urlencoding = "2.1.0"
sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs.git" } sphinx-signer = { git = "https://github.com/stakwork/sphinx-rs.git" }
# sphinx-signer = { path = "../../sphinx-rs/signer" } # sphinx-signer = { path = "../../sphinx-rs/signer" }
sphinx-crypter = { git = "https://github.com/stakwork/sphinx-rs.git" } sphinx-crypter = { git = "https://github.com/stakwork/sphinx-rs.git" }
# sphinx-crypter = { path = "../../sphinx-rs/crypter" } # sphinx-crypter = { path = "../../sphinx-rs/crypter" }
anyhow = {version = "1", features = ["backtrace"]}
log = "0.4"
rumqttc = "0.12.0"
tokio = { version = "1.4.0", features = ["rt", "rt-multi-thread", "macros"] }
pretty_env_logger = "0.4.0"
clap = "=3.0.0-beta.2"
clap_derive = "=3.0.0-beta.5"
fern = { version = "0.6", features = ["colored"] }
chrono = "0.4"
rand = "0.8"
reqwest = { version = "0.11.11", features = ["json"] }
hex = "0.4.3"
serde = { version = "1.0.101", features = ["derive"] }
serde_json = "1.0"
urlencoding = "2.1.0"
dotenv = "0.15.0"
rocket = "0.5.0-rc.2"
rmp-serde = "1.1.0"
[[bin]] [[bin]]
name = "config" name = "config"