This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Implement Sync for AzureError #259
Labels
Comments
nbigaouette
added a commit
to nbigaouette/AzureSDKForRust
that referenced
this issue
Apr 29, 2020
This should remove `error-chain` from the dependency tree, allowing an `AzureError` that is `Sync`. See MindFlavor#259 and MindFlavor#260.
nbigaouette
added a commit
to nbigaouette/AzureSDKForRust
that referenced
this issue
Apr 29, 2020
This should remove `error-chain` from the dependency tree, allowing an `AzureError` that is `Sync`. See MindFlavor#259 and MindFlavor#260.
MindFlavor
added
Core
Azure SDK Core crate
dependency
ergonomics
Issues about ease of use of the library
labels
May 3, 2020
Your guess was right, now I've added some pseudo unit tests to check this: AzureSDKForRust/azure_sdk_core/src/errors.rs Lines 439 to 480 in 4ab4529
This way if something not |
Great! Thanks a lot! For the tests that fail to compile, there is a feature of doc tests that could be useful: https://doc.rust-lang.org/edition-guide/rust-2018/rustdoc/documentation-tests-can-now-compile-fail.html |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
I'm trying to bootstrap a simple project talking to an azure blob storage. To simplify error handling I want to use the
anyhow
crate.Unfortunately I cannot make both crates work.
anyhow
complains that theAzureError
is not sync:where main the signature is
fn main() -> anyhow::Result<()>
.Looking around anyhow github issue, it seems to want a
Sync
error to be able to work inasync
code: dtolnay/anyhow#81And according to dtolnay/anyhow#72, errors should be Sync (see comment dtolnay/anyhow#72 (comment))
Could
AzureError
be madeSync
?Looking at the compiler error, is seems
error_chain
is an indirect dependency (throughserde_xml
), which could potentially block this... Any though?Thanks!
The text was updated successfully, but these errors were encountered: