Skip to content

Commit

Permalink
Added local copy of postgrest library to use temporarily
Browse files Browse the repository at this point in the history
Remove/replace after serde and json support is released on postgrest crate
  • Loading branch information
strykejern committed Oct 17, 2024
1 parent f9231c9 commit 67e3552
Show file tree
Hide file tree
Showing 7 changed files with 1,846 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "suparust"
authors = ["Anders B. Eie"]
version = "0.1.0"
version = "0.2.0"
edition = "2021"
license = "Apache-2.0 OR MIT"
description = "Supabase client for Rust with support for WASM"
Expand All @@ -16,15 +16,13 @@ serde = { version = "1.0.210", features = ["derive"] }
thiserror = "1.0.64"
tokio = { version = "1.40.0", features = ["sync"] }
serde_json = "1.0.128"
postgrest = { version = "1.6.0" } #, features = ["serde"] }
log = "0.4.22"
supabase-auth = "0.9.1"
mime = "0.3.17"

[patch.crates-io]
# Custom git revision to get support for json in reqwest and serde in postgrest
# Custom git revision to get support for PartialEq on structs in supabase-auth
# TODO: Update to proper version when it's released
postgrest = { git = "https://github.com/strykejern/postgrest-rs.git", branch = "serde-default" }
supabase-auth = { git = "https://github.com/strykejern/supabase-auth-rs", branch = "derives" }

[target.'cfg(target_family = "wasm")'.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/external/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#[cfg(not(doctest))]
pub(crate) mod postgrest_rs;
Loading

0 comments on commit 67e3552

Please sign in to comment.