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

Fix serde test features #538

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

Firstyear
Copy link
Contributor

No description provided.

Signed-off-by: William Brown <[email protected]>
Superhepper
Superhepper previously approved these changes Aug 6, 2024
@Superhepper Superhepper self-requested a review August 7, 2024 09:18
@Superhepper Superhepper dismissed their stale review August 7, 2024 09:19

New information

Copy link
Collaborator

@Superhepper Superhepper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it would be possible to achieve this using Resolver = 2 instead in the cargo.toml?

Something like this:

[package]
name = "B"
resolver = "2"

[features]
serde = []
abstractions = []
integration-tests = []

[dev-dependencies]
B = { path = ".", features = ["test-utils", "abstractions", "integration-tests"] }

I am not sure this is a good idea or not. But I think it is worth trying. Because I think it is a good idea to build all the tests as standard and if you want to be clever you can add some command line arguments.

@Superhepper
Copy link
Collaborator

I will try to work on the Cargo configuration things in another PR.

Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍 thanks!

@wiktor-k wiktor-k merged commit 938247b into parallaxsecond:main Aug 19, 2024
12 checks passed
Superhepper added a commit to Superhepper/rust-tss-esapi that referenced this pull request Aug 30, 2024
This PR builds upon the work made in parallaxsecond#539 and parallaxsecond#538
and fixes a problem with running tests required
several features to be specified in order for the
tests to compile.

This has been accomplish by doing the following:
1. Tests have been refactored in order to avoid
   dependency on features that may and may not be
   available.
2. Updated workspace Cargo.toml to use version 2
   resolver.
3. Updated tss-esapi Cargo.toml to use the crate
   it self as dev-dependency with most of the
   features enabled.

Co-authored-by: Travis Finkenauer <[email protected]>
Co-authored-by: William Brown <[email protected]>
Signed-off-by: Jesper Brynolf <[email protected]>
Superhepper added a commit to Superhepper/rust-tss-esapi that referenced this pull request Aug 30, 2024
This PR builds upon the work made in parallaxsecond#539 and parallaxsecond#538
and fixes a problem with running tests required
several features to be specified in order for the
tests to compile.

This has been accomplish by doing the following:
1. Tests have been refactored in order to avoid
   dependency on features that may and may not be
   available.
2. Updated workspace Cargo.toml to use version 2
   resolver.
3. Updated tss-esapi Cargo.toml to use the crate
   it self as dev-dependency with most of the
   features enabled.

Co-authored-by: Travis Finkenauer <[email protected]>
Co-authored-by: William Brown <[email protected]>
Signed-off-by: Jesper Brynolf <[email protected]>
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.

3 participants