Skip to content

Commit

Permalink
remove dlopen hack (#1468)
Browse files Browse the repository at this point in the history
Resolves #1369

Motivation of this PR:
* no need to compile `cargo-pgrx` after upgrading compiler
* make it possible to support `binstall`

This PR:
* recompilation occurs even if we use a nightly toolchain
* schema is generated by `cargo run --bin pgrx_embed_${ext_name}` ,
instead of using `libloading` crate (unused symbols are removed by
linker, so it compiles)
* removes compiler version check
* removes codes about stub
* removes unnecessary metadata-related traits

This is a breaking change: users need to write `pgrx::pgrx_embed!();` to
`src/pgrx_embed.rs` and add that `[[bin]]` to the `Cargo.toml`,
otherwise schema generation will report an error.

---------

Signed-off-by: usamoi <[email protected]>
  • Loading branch information
usamoi authored Feb 7, 2024
1 parent 96e6b1e commit 03e97ee
Show file tree
Hide file tree
Showing 70 changed files with 582 additions and 592 deletions.
138 changes: 65 additions & 73 deletions Cargo.lock

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

Loading

0 comments on commit 03e97ee

Please sign in to comment.