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

Add ada_toml 0.4.0 #1008

Merged
merged 1 commit into from
Mar 9, 2024
Merged

Conversation

pmderodat
Copy link
Contributor

No description provided.

Copy link
Member

@mosteo mosteo left a comment

Choose a reason for hiding this comment

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

See inlined comment.

Comment on lines 104 to 106

[gpr-set-externals]
ADA_TOML_BUILD_MODE = "prod"
Copy link
Member

Choose a reason for hiding this comment

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

Hi @pmderodat, this should be left unset so clients of the library can define it. You can of course use that as default in your gpr file, so clients are not forced to choose either. I realize now this is inherited from previous releases, so I apologize for previous oversights.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello, thank you for the review! No problem :-)

Copy link
Member

Choose a reason for hiding this comment

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

Hi, I don't agree here ^^

The default value in ada_toml.gpr is dev.

Most people will just want to use this library and not work on it, so it's better to default to performance and lower binary size.

Also the "dev" mode enables warnings as errors, so there's a good chance this library won't compile with future compilers that will introduce new warnings.

So for me, it's important to either:

  • Change the default in ada_toml.gpr
  • Set the build mode in the release manifest
  • Use the Alire crate config system

Copy link
Member

Choose a reason for hiding this comment

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

Mmm, so you mean that users should not have the option to even enable dev? Because if set to prod with gpr-set-externals, any attempt to change it will cause a conflict.

I didn't check the default, that makes sense that it be prod.

I don't see why the config system is needed here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

FTR I would prefer that the default in the GPR file stays dev, because it’s the most convenient in developer mode, which is what I would expect most git clone consumers to do. It would be really nice if Alire was able to have its own default in its spec, and then let Alire users override it if necessary.

Copy link
Member

Choose a reason for hiding this comment

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

I that case I strongly recommend to bring back the "prod" build mode in the 0.4.0 release manifest

[gpr-set-externals]
ADA_TOML_BUILD_MODE = "prod"

@mosteo mosteo merged commit c5af03b into alire-project:stable-1.2.1 Mar 9, 2024
15 checks passed
@mosteo
Copy link
Member

mosteo commented Mar 9, 2024

Merged, thanks.

@pmderodat
Copy link
Contributor Author

Great, thank you very much!

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