Skip to content
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

Compilation issue compiling Rust without default features #326

Closed
markdingram opened this issue Sep 30, 2023 · 0 comments
Closed

Compilation issue compiling Rust without default features #326

markdingram opened this issue Sep 30, 2023 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@markdingram
Copy link

Encountering some compile errors down in the Pact crates after running a Cargo update - recreates on master at commit c0201a7

cargo check --no-default-features
...
error[E0609]: no field `metadata_rules` on type `sync_message_builder::InteractionContents`
   --> pact_consumer/src/builders/sync_message_builder.rs:487:41
    |
487 |       let rules = self.request_contents.metadata_rules.get_or_insert_with(|| MatchingRuleCategory::empty("metadata"));
    |                                         ^^^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `part_name`, `body`, `rules`, `generators`, `metadata`

error[E0560]: struct `sync_message_builder::InteractionContents` has no field named `metadata_rules`
   --> pact_consumer/src/builders/sync_message_builder.rs:543:7
    |
543 |       metadata_rules: None,
    |       ^^^^^^^^^^^^^^ `sync_message_builder::InteractionContents` does not have this field
....

Perhaps avoid this by adding a no-default-features check to CI?

@rholshausen rholshausen added the bug Indicates an unexpected problem or unintended behavior label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants