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

[chore] reduce verbosity on build #15

Merged
merged 5 commits into from
Apr 3, 2024

Conversation

orph3usLyre
Copy link
Owner

  • reduce output text at build time

Note for contributor @mrauhu:
I know that we spoke about this issue already a couple of times, so I reached out to a few other devs to ask their opinion about how much/if any output text should be produced by the library. There was a pretty strong preference for not having any output at all. I thought about this for a little bit, and I decided to go with this route. Generally, this type of library should only be used by someone who has read the documentation, and all the instructions should probably be there rather than as actual project output at every build. However, I am planning on making a cargo-muddy CLI tool that will automatically obfuscate a rust project (without the need to import the library). And I think that's where all the output would be important (since it will only run once, rather than every build). Thanks again for the help!

Copy link
Contributor

@mrauhu mrauhu left a comment

Choose a reason for hiding this comment

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

Hello, @orph3usLyre.

Added small note about Windows environment variables.

#[cfg(windows)]
// language=cmd
eprintln!(r#"set "{env_name}={key}""#);
eprintln!(r#"set {env_name}="{key}""#);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a wrong example of usage for Windows:

set {env_name}="{key}"

Because an environment variable value will be contain quotes (") on each side, like:

"value"

Correct example:

set "{env_name}={key}"

It's works for values with and without spaces.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Thanks for the catch! Fixing this now

@orph3usLyre orph3usLyre merged commit e56d15b into main Apr 3, 2024
5 checks passed
@orph3usLyre orph3usLyre deleted the chore/reduce-library-output-text branch April 3, 2024 08:53
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