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

Are you accepting refactorings? #41

Open
kornelski opened this issue Oct 24, 2024 · 4 comments
Open

Are you accepting refactorings? #41

kornelski opened this issue Oct 24, 2024 · 4 comments

Comments

@kornelski
Copy link
Contributor

The code is unidiomatic for Rust, and requires more unsafe than necessary. I'd be interested in cleaning this up, but this would result in big-ish patches, and I'd like to first ask if you have ability to accept and review bigger changes.

@jrmuizel
Copy link
Collaborator

Yeah, I'd probably be willing to accept larger changes to make it more idiomatic.

@jrmuizel
Copy link
Collaborator

If you have a rough sketch of particular changes I can pre-review that as well.

@kornelski
Copy link
Contributor Author

I need a safe CMS library, and I was wondering whether to use qcms, or convert LCMS2 myself.

Transforms seem to have more unsafe code than necessary. I'd like to try to reduce amount of pointer arithmetic it performs (src/dest may be tricky due to aliasing, but other data like lookup tables could be just Rust arrays).

Plus there's a ton of leftovers from C conversion like for i in len { vec[i] } that could have been more idiomatic.

However, I am worried that my question didn't get an answer for 3 months, so submitting a few pull requests at that pace could take too long.

@kornelski
Copy link
Contributor Author

A sample: #42

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

No branches or pull requests

2 participants