Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pwrbob
Copy link
Contributor

@pwrbob pwrbob commented Jan 14, 2026

These changes move duplicate code from the crates generic_hash and dynamic_hash into the hashcat-sys crate, allowing its reuse in both bridges (and all future ones).

Additionally, the structure of hashcat-sys was slightly modified to allow new Rust bridges to be implemented more easily.

Various other minor changes and small doc updates were made.

edition = "2024"

[dependencies]
anyhow = "1.0.100"

Choose a reason for hiding this comment

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

I'd avoid third-party crates in dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The goal of this PR is to simplify the code, and avoid having to implement a custom error enum for (currently) one situation.

Why should third-party crates be avoided? A big advantage of Rust is its crate ecosystem. All bridges that currently exist depend on many third-party crates anyways.

Choose a reason for hiding this comment

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

Adding a dependency just to create an error that will be ignored anyway? Looks very much like bloat.

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