Loading
buildPgrxExtension: enable building workspaces
Doing
cargoBuildFlags = [ "-p" "foo" ]
doesn't work here since this gets only passed to PGRX_BUILD_FLAGS which
in turn is used by `cargo build`.
This means that pgrx itself doesn't know of the workspace setup and
fails with
Error:
0: Couldn't get manifest path
1: `pgrx` requires a root package in a workspace when `--package` is not specified.
This patch introduces another flag called `cargoPgrxFlags` to do the
right thing, i.e. to pass this to each pgrx invocation.
Using `cargoBuildFlags` is not reasonable here since `cargo build`
accepts flags that may not be valid when invoking `cargo pgrx` (e.g. `-r`).