Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Bindings #470

Open
callum-gander opened this issue Dec 14, 2024 · 3 comments
Open

Rust Bindings #470

callum-gander opened this issue Dec 14, 2024 · 3 comments
Labels
enhancement New feature or request wasi outside browser usage

Comments

@callum-gander
Copy link

Are there any future plans to add Rust bindings for this? I can see this as an appealing alternative to bundling up Postgres as a sidecar for things like Tauri apps or using SQLite. Thanks

@realmorrisliu
Copy link

Are there any future plans to add Rust bindings for this? I can see this as an appealing alternative to bundling up Postgres as a sidecar for things like Tauri apps or using SQLite. Thanks

Maybe you could try using pglite directly within Tauri’s webview? I’m not sure if it will work, but it could be an interesting alternative to bundling Postgres as a sidecar.

@callum-gander
Copy link
Author

That doesn't feel very secure imo, feels like it should sit on the rust side rather than in the webview, but appreciate the idea

@pmp-p
Copy link
Collaborator

pmp-p commented Jan 10, 2025

Not keen on Rust, but maybe a valid approach would be to just run pglite inside rust with https://docs.wasmtime.dev/lang-rust.html like it was done for Go here #89

To go further than that POC you would need to pick a rust postgres wire protocol client crate though.

@pmp-p pmp-p added wasi outside browser usage enhancement New feature or request labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wasi outside browser usage
Projects
None yet
Development

No branches or pull requests

3 participants