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

🌶️ Remove built in C dependency #13

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

Jasper-Bekkers
Copy link
Contributor

It's not really needed to bring in bindgen and other large crates for this as we can just move the code into Rust instead to make this crate a bit leaner.

@Hanaasagi
Copy link
Owner

I saw that this piece of cpp code was introduced in #4 to fix x86 compatibility. Would there be any impact if it were removed?

@Jasper-Bekkers
Copy link
Contributor Author

Jasper-Bekkers commented Jul 24, 2024

I wouldn't expect it to, what is causing the x86 compat is the function call. We need to manually load the dll and query the entrypoint because it doesnt always exist.

All of this can just easily be done from Rust just as well - which this PR does.

Put another way, the actual code thats executed doesn't change with this PR, however, it's written in Rust now.

@Hanaasagi
Copy link
Owner

Thank you.

@Hanaasagi Hanaasagi merged commit b02266c into Hanaasagi:master Jul 25, 2024
4 checks passed
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