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 Cargo crate exclude paths #31

Merged
merged 1 commit into from
Sep 21, 2024
Merged

Conversation

pasabanov
Copy link
Contributor

@pasabanov pasabanov commented Sep 21, 2024

  1. .github folder is definitely unnecessary for the dependents of the library.
  2. examples folder might be helpful for some developers, but I don't think that many people inspect the sources downloaded from crates.io and viewing this folder will always be easy on GitHub.
  3. tests folder is probably only used in a development environment and is not that helpful for the dependents.

Excluding these folders from the Cargo crate will reduce the network and disk space consumption and lead to more concise file structure for the crate.

Copy link
Collaborator

@complexspaces complexspaces left a comment

Choose a reason for hiding this comment

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

tests folder is probably only used in a development environment and is not that helpful for the dependents.

This seems reasonable to me, for the time being. Quite often crate consumers will run their dependency's tests (especially if they have custom toolchains) but since there's only a single WASM-specific test in the tests/ directory I don't think that's worth much to anyone.

@complexspaces complexspaces merged commit 13823e9 into 1Password:main Sep 21, 2024
42 checks passed
@complexspaces
Copy link
Collaborator

Thanks for the improvement!

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