This repository has been archived by the owner on May 7, 2024. It is now read-only.
generated from hack-ink/rust-initializer
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor test * Part I * Part II * Part III * Part IV * Part V * Part VI * Part VII * README * Release `v0.2.0-rc1`
- Loading branch information
Showing
16 changed files
with
906 additions
and
742 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,25 @@ | ||
[package] | ||
authors = ["Xavier Lau <[email protected]>"] | ||
description = "Atomicals electrumx APIs." | ||
edition = "2021" | ||
homepage = "https://hack.ink/atomicalsir" | ||
license = "GPL-3.0" | ||
name = "atomicals-electrumx" | ||
readme = "README.md" | ||
repository = "https://github.com/hack-ink/atomicalsir" | ||
version = "0.2.0" | ||
|
||
[dependencies] | ||
# crates.io | ||
array-bytes = { version = "6.2" } | ||
bitcoin = { version = "0.31", features = ["rand-std"] } | ||
reqwest = { version = "0.11", features = ["json", "rustls-tls"] } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = { version = "1.0" } | ||
sha2 = { version = "0.10" } | ||
thiserror = { version = "1.0" } | ||
tokio = { version = "1.35", features = ["macros", "rt-multi-thread"] } | ||
tracing = { version = "0.1" } | ||
|
||
[dev-dependencies] | ||
tracing-subscriber = { version = "0.3" } |
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,17 @@ | ||
//! atomicals-electrumx error collections. | ||
#![allow(missing_docs)] | ||
|
||
// crates.io | ||
use thiserror::Error as ThisError; | ||
|
||
#[derive(Debug, ThisError)] | ||
pub enum Error { | ||
#[error("exceeded maximum retries")] | ||
ExceededMaximumRetries, | ||
|
||
#[error(transparent)] | ||
Bitcoin(#[from] bitcoin::address::Error), | ||
#[error(transparent)] | ||
Reqwest(#[from] reqwest::Error), | ||
} |
Oops, something went wrong.