Skip to content

Commit

Permalink
Unify workspace (#456)
Browse files Browse the repository at this point in the history
* Unify workspace

Signed-off-by: Ana Hobden <[email protected]>

* Add bgworker to workspace members

Signed-off-by: Ana Hobden <[email protected]>

* Use resolver 2

Signed-off-by: Ana Hobden <[email protected]>

* remove extra control file

Signed-off-by: Ana Hobden <[email protected]>

* Update template editions

Signed-off-by: Ana Hobden <[email protected]>

* Use second resolver

Signed-off-by: Ana Hobden <[email protected]>

* The test all CI does not require pg_test as a feature

Signed-off-by: Ana Hobden <[email protected]>
  • Loading branch information
Hoverbear authored Mar 2, 2022
1 parent 6602e3a commit 0aced59
Show file tree
Hide file tree
Showing 36 changed files with 238 additions and 152 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ jobs:

# test our code
- name: cargo test
run: RUST_BACKTRACE=1 cargo test --all --features "pg${{ matrix.version }} pg_test" --no-default-features
run: RUST_BACKTRACE=1 cargo test --all --features "pg${{ matrix.version }}" --no-default-features
195 changes: 184 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 2 additions & 35 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,16 @@
[package]
name = "pgx-parent"
version = "0.3.3"
authors = ["ZomboDB, LLC <[email protected]>"]
edition = "2018"
license = "MIT"
description = "Top-level repo for 'pgx' (not on crates.io)"
homepage = "https://github.com/zombodb/pgx/"
repository = "https://github.com/zombodb/pgx/"

[workspace]
resolver = "2"
members = [
".",
"cargo-pgx",
"pgx",
"pgx-macros",
"pgx-pg-sys",
"pgx-tests",
"pgx-utils",
]
exclude = [
"pgx-examples/aggregate",
"pgx-examples/arrays",
"pgx-examples/bad_ideas",
"pgx-examples/bgworker",
"pgx-examples/bytea",
"pgx-examples/custom_types",
"pgx-examples/custom_sql",
Expand All @@ -35,25 +24,3 @@ exclude = [
"pgx-examples/strings",
"pgx-examples/triggers",
]

[features]
default = [ ]
pg10 = [ "pgx/pg10", "pgx-pg-sys/pg10", "pgx-tests/pg10" ]
pg11 = [ "pgx/pg11", "pgx-pg-sys/pg11", "pgx-tests/pg11" ]
pg12 = [ "pgx/pg12", "pgx-pg-sys/pg12", "pgx-tests/pg12" ]
pg13 = [ "pgx/pg13", "pgx-pg-sys/pg13", "pgx-tests/pg13" ]
pg14 = [ "pgx/pg14", "pgx-pg-sys/pg14", "pgx-tests/pg14" ]
pg_test = [ "pgx-tests/pg_test" ]

[package.metadata.docs.rs]
features = ["pg14"]
no-default-features = true
# Enable `#[cfg(docsrs)]` (https://docs.rs/about/builds#cross-compiling)
rustc-args = ["--cfg", "docsrs"]

[dependencies]
cargo-pgx = { path = "cargo-pgx", version = "0.3.3" }
pgx = { path = "pgx", version = "0.3.3", default-features = false }
pgx-macros = { path = "pgx-macros", version = "0.3.3" }
pgx-pg-sys = { path = "pgx-pg-sys", version = "0.3.3", default-features = false }
pgx-tests = { path = "pgx-tests", version = "0.3.3", default-features = false }
Loading

0 comments on commit 0aced59

Please sign in to comment.