Closed smir-ant closed 1 month ago
Hello @smir-ant, this project is installing PostgreSQL binaries and providing a wrapper so that Rust programs can treat it as if it were an embedded database. This means that this project will not work in a WASM context. I believe sqlite supports being compiled/run with WASM now; you might want to take a look at the rusqlite project if you are looking for an embedded database for a WASM project.
Cheers, -Brian
@smir-ant you might be interested in the pglite project.
yes, the option to use wasm and postgre embedded seems excessively strange. But this is exactly what I would like for my project
my project is compiled with cargo.toml:
but if you add
then I get the following error:
I am still learning the rust language, but chatgpt told me the following: The problem you are facing is related to the fact that you are trying to build a project for the wasm32-unknown-unknown target platform, but postgresql_embedded and its dependencies, such as openssl-sys, require the installation of libraries that are not supported for this platform.
is it possible to fix it? how?
thanks