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

Rust code splitting #36

Merged
merged 6 commits into from
May 26, 2024
Merged

Conversation

dzervas
Copy link
Collaborator

@dzervas dzervas commented May 24, 2024

No description provided.

@dzervas dzervas force-pushed the sketch-features-rework branch 2 times, most recently from 3363029 to 5303d0e Compare May 25, 2024 21:19
@MattFerraro
Copy link
Collaborator

Hey this looks pretty good but could you explain a bit more thoroughly your thought process? Please provide a few sentences of description that helps us understand what you did, why, and an explanation of any choices you made along the way like choosing which dependencies to add.

@dzervas
Copy link
Collaborator Author

dzervas commented May 26, 2024

As I started reading the code, almost all the code was in project.rs, about 1800 lines and I started splitting it roughly in a struct-per-file manner (quite standard for rust code).

I also "folded" some tests (instead of copy-paste code, have an array and iterate over it)

That was the main PR but last night I started hunting for unwraps and error bubbling (I know that we don't need it right now but it can help a ton during dev).

@dzervas dzervas force-pushed the sketch-features-rework branch from 39ea948 to 5e61e58 Compare May 26, 2024 11:34
@MattFerraro
Copy link
Collaborator

MattFerraro commented May 26, 2024

Fantastic work. The tests pass locally and I think this is a big improvement that will make it a lot easier for others to jump in.

@MattFerraro
Copy link
Collaborator

the CI build failure is unrelated to the content of this PR so I'm going to just merge this and fix that failure separately

@MattFerraro MattFerraro merged commit 4d58e31 into CADmium-Co:main May 26, 2024
1 of 2 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