You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2024. It is now read-only.
error: external crate `async_trait` unused in `atomicalsir`: remove the dependency or add `use async_trait as _;`
|
note: the lint level is defined here
--> src/main.rs:1:23
|
1 | #![deny(missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0706]:functions in traits cannot be declared `async`
--> src/electrumx.rs:22:2
|
22 | async fn post<U,P,R>(&self, uri:U, params:P) -> Result<R>
| ^----
| |
| _____`async` because of this
| |
23 | | where
24 | | U:AsRef<str>,25 | | P:Serialize,26 | | R:DeserializeOwned;
| |____________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:37:2
|
37 | async fn get_by_ticker<S>(&self, ticker:S) -> Result<Ticker>
| ^----
| |
| _____`async` because of this
| |
38 | | where
39 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:51:2
|
51 | async fn get_ft_info<S>(&self, atomical_id:S) -> Result<ResponseResult<Ft>>
| ^----
| |
| _____`async` because of this
| |
52 | | where
53 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:64:2
|
64 | async fn get_unspent_address<S>(&self, address:S) -> Result<Vec<Utxo>>
| ^----
| |
| _____`async` because of this
| |
65 | | where
66 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:74:2
|
74 | async fn get_unspent_scripthash<S>(&self, scripthash:S) -> Result<Vec<Utxo>>
| ^----
| |
| _____`async` because of this
| |
75 | | where
76 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:94:2
|
94 | async fn wait_until_utxo<S>(&self, address:S, satoshis:u64) -> Result<Utxo>
| ^----
| |
| _____`async` because of this
| |
95 | | where
96 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:112:2
|
112 | async fn broadcast<S>(&self, tx:S) -> Result<serde_json::Value>
| ^----
| |
| _____`async` because of this
| |
113 | | where
114 | | S:AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:141:2
|
141 | async fn post<U,P,R>(&self, uri:U, params:P) -> Result<R>
| ^----
| |
| _____`async` because of this
| |
142 | | where
143 | | U:AsRef<str>,144 | | P:Serialize,145 | | R:DeserializeOwned,
| |____________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate:https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help:add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
For more information about this error, try `rustc --explain E0706`.error: could not compile `atomicalsir` (bin "atomicalsir") due to 9 previous errors
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: