-
Notifications
You must be signed in to change notification settings - Fork 21
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
Clever Challenge - Rust #10
base: master
Are you sure you want to change the base?
Commits on Dec 3, 2018
-
Replacing the boilerplate go code with a Rust Cargo project.
Also implemented += on result as part of this change.
Configuration menu - View commit details
-
Copy full SHA for 4b75def - Browse repository at this point
Copy the full SHA 4b75defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00718b5 - Browse repository at this point
Copy the full SHA 00718b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c76f9c - Browse repository at this point
Copy the full SHA 4c76f9cView commit details -
Basic implementation of compute
This method has none of the diff checking properties, it was just ensuring that we read the directory for all diffs that need to be checked. They are temporaraly stored in the set of found files.
Configuration menu - View commit details
-
Copy full SHA for 697ca1c - Browse repository at this point
Copy the full SHA 697ca1cView commit details -
Updating the formating of results.rs
RustFmt got lazy and forgot these changes earlier.
Configuration menu - View commit details
-
Copy full SHA for edee726 - Browse repository at this point
Copy the full SHA edee726View commit details
Commits on Dec 4, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 2532634 - Browse repository at this point
Copy the full SHA 2532634View commit details
Commits on Dec 5, 2018
-
Adding framework for diff processing.
Implemented an increment for regions in Result. With that, region calculation is done
Configuration menu - View commit details
-
Copy full SHA for ae15bae - Browse repository at this point
Copy the full SHA ae15baeView commit details -
Smarter handler for diff reader has been added
This checks what line came before the decide what to do next. Work in progress as there are states that are as of yet unfiled. Work in progress as documentation is not added yet to the new struct
Configuration menu - View commit details
-
Copy full SHA for 984cae6 - Browse repository at this point
Copy the full SHA 984cae6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 820d563 - Browse repository at this point
Copy the full SHA 820d563View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b9e43e - Browse repository at this point
Copy the full SHA 6b9e43eView commit details -
Improving the state machine having to understand the diffs.
Deleted files and empty file were supported here.
Configuration menu - View commit details
-
Copy full SHA for 6779e0a - Browse repository at this point
Copy the full SHA 6779e0aView commit details -
src/diff.rs can now be found in two parts: src/diff/mod.rs holds the front facing part of the module. src/diff/diff_type.rs holds the type parcing and state machine logic
Configuration menu - View commit details
-
Copy full SHA for c499780 - Browse repository at this point
Copy the full SHA c499780View commit details -
Adding filename parcing to diff header.
Adding regex and lazy static to facilitate easy use of the parcing system for each line. The regex used could be replaced without effecting much of the outer system. Seeing as anywhere else, filenames are repeated, using the header seems like a good enough solution for the task that can be quickly exteneded.
Configuration menu - View commit details
-
Copy full SHA for 235b4e8 - Browse repository at this point
Copy the full SHA 235b4e8View commit details -
Adding count of function calls
The way this is done is throug regex of a single line to find A bunch of word characters followed by an open bracket.
Configuration menu - View commit details
-
Copy full SHA for ab40313 - Browse repository at this point
Copy the full SHA ab40313View commit details -
Printing takes time. Printing a lot takes longer. This is a split of the print time from the compute time.
Configuration menu - View commit details
-
Copy full SHA for 20f8347 - Browse repository at this point
Copy the full SHA 20f8347View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0b53c7 - Browse repository at this point
Copy the full SHA b0b53c7View commit details
Commits on Dec 6, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 219b448 - Browse repository at this point
Copy the full SHA 219b448View commit details -
Configuration menu - View commit details
-
Copy full SHA for b02c014 - Browse repository at this point
Copy the full SHA b02c014View commit details