Skip to content

Commit

Permalink
fix: vendor pg embed (#6)
Browse files Browse the repository at this point in the history
* fix: vendorize pg embed

* docs: readme

---------

Co-authored-by: James Holman <[email protected]>
  • Loading branch information
jayy-lmao and jayy-lmao authored Dec 12, 2023
1 parent a5d77d2 commit 134b6be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "pg-embed"]
path = pg-embed
url = https://github.com/jayy-lmao/pg-embed.git
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ chrono = "0.4"
# regex = "1.5"
tokio = { version = "1", features = ["full"] }
dotenv = "0.15.0"
pg-embed = { git = "https://github.com/jayy-lmao/pg-embed.git", branch = "feat/remove-usage-of-archive-rs" , optional = true}
pg-embed = { path = "pg-embed", optional = true}
# rustfmt-nightly = "1.0"
[features]
embedded = ["pg-embed"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cargo install sql-gen

Or for embedded postgres (you can use a migrations folder instead of a `--database-url`)
```shell
cargo install --git https://github.com/jayy-lmao/sql-gen --branch main --features embedded
cargo install sql-gen --features embedded
```

Or for the latest github
Expand Down
1 change: 1 addition & 0 deletions pg-embed
Submodule pg-embed added at 72db5e

0 comments on commit 134b6be

Please sign in to comment.