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

Added support the [cargo-new] table #21

Merged
merged 4 commits into from
Sep 1, 2024

Conversation

ranger-ross
Copy link
Contributor

@ranger-ross ranger-ross commented Aug 31, 2024

Hey there! 👋

I also added support for the cargo-new table which only has 1 none deprecated property.
I did not add the deprecated fields.

Copy link
Owner

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

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

Thanks!

src/de.rs Outdated
pub vcs: Option<Value<VersionControlSoftware>>,
}

#[allow(clippy::exhaustive_enums)]
Copy link
Owner

Choose a reason for hiding this comment

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

I think this enum should use #[non_exhaustive].

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, good catch. I made this #[non_exhaustive] and reexported it at the crate root to match the other enums 👍

tests/test.rs Outdated
@@ -72,7 +72,7 @@ fn assert_reference_example(de: fn(&Path, ResolveOptions) -> Result<Config>) ->
assert_eq!(config.future_incompat_report.frequency, Some(Frequency::Always));

// TODO
// [cargo-new]
assert_eq!(config.cargo_new.vcs, None);
Copy link
Owner

Choose a reason for hiding this comment

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

We can test this by uncommenting the following two lines:

# [cargo-new]
# vcs = "none" # VCS to use ('git', 'hg', 'pijul', 'fossil', 'none')

@taiki-e taiki-e merged commit 6586dd4 into taiki-e:main Sep 1, 2024
12 checks passed
@ranger-ross ranger-ross deleted the impl-cargo-new branch September 1, 2024 06:38
@taiki-e
Copy link
Owner

taiki-e commented Sep 1, 2024

Published in 0.1.28.

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.

2 participants