faokunega / pg-embed

Run a Postgresql database locally on Linux, MacOS or Windows as part of another Rust application or test.
MIT License
116 stars 26 forks source link

Problem: can't use pg_embed with anyhow::Error #15

Closed yrashk closed 1 year ago

yrashk commented 1 year ago

It fails to compile with:

`(dyn std::error::Error + Send + 'static)` cannot be shared between threads safely

Solution: add Sync requirement

anyhow is a popular crate, especially for end users of APIs (such as tests and CLIs) and working with it is a useful property to have.

faokunega commented 1 year ago

Thanks