Skip to content

Update to pgrx 0.12.0.alpha.1 #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Update to pgrx 0.12.0.alpha.1 #50

wants to merge 3 commits into from

Conversation

rustprooflabs
Copy link
Owner

@rustprooflabs rustprooflabs added this to the 0.5.3 milestone Mar 22, 2024
@rustprooflabs
Copy link
Owner Author

rustprooflabs commented Mar 22, 2024

Not sure why yet, but cargo pgrx run failed with this error:

   Compiling pgdd v0.5.3-dev.0 (/home/ryanlambert/git/pgdd)
error[E0599]: no function or associated item named `try_from` found for struct `ControlFile` in the current scope
  --> /tmp/.tmpOq8FPl:1:247
   |
1  | ..._entity_graph :: ControlFile :: try_from (control_file_path) . expect (".control file should properly formatted") ; let control_...
   |                                    ^^^^^^^^ function or associated item not found in `ControlFile`
   |
note: if you're trying to build a new `ControlFile`, consider using `ControlFile::from_str` which returns `std::result::Result<ControlFile, pgrx_sql_entity_graph::control_file::ControlFileError>`
  --> /home/ryanlambert/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pgrx-sql-entity-graph-0.12.0-alpha.1/src/control_file.rs:71:5
   |
71 |     pub fn from_str(input: &str) -> Result<Self, ControlFileError> {
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
  --> src/bin/pgrx_embed_pgdd.rs:2:1
   |
2  + use std::convert::TryFrom;
   |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `pgdd` (bin "pgrx_embed_pgdd") due to 1 previous error

@rustprooflabs
Copy link
Owner Author

Error fixed. Thank you @usamoi for pointing me at the edition being the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant