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

Clever Challenge - Rust #10

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Clever Challenge - Rust #10

wants to merge 18 commits into from

Commits on Dec 3, 2018

  1. Replacing the boilerplate go code with a Rust Cargo project.

    Also implemented += on result as part of this change.
    Tormyst committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    4b75def View commit details
    Browse the repository at this point in the history
  2. Updating readme

    Tormyst committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    00718b5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c76f9c View commit details
    Browse the repository at this point in the history
  4. 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.
    Tormyst committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    697ca1c View commit details
    Browse the repository at this point in the history
  5. Updating the formating of results.rs

    RustFmt got lazy and forgot these changes earlier.
    Tormyst committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    edee726 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2018

  1. Configuration menu
    Copy the full SHA
    2532634 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2018

  1. Adding framework for diff processing.

    Implemented an increment for regions in Result.
    With that, region calculation is done
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    ae15bae View commit details
    Browse the repository at this point in the history
  2. 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
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    984cae6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    820d563 View commit details
    Browse the repository at this point in the history
  4. Adding NewMode header line

    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    6b9e43e View commit details
    Browse the repository at this point in the history
  5. Improving the state machine having to understand the diffs.

    Deleted files and empty file were supported here.
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    6779e0a View commit details
    Browse the repository at this point in the history
  6. Refactor of src/diff.rs

    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
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    c499780 View commit details
    Browse the repository at this point in the history
  7. 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.
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    235b4e8 View commit details
    Browse the repository at this point in the history
  8. 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.
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    ab40313 View commit details
    Browse the repository at this point in the history
  9. Improvment of main function.

    Printing takes time.  Printing a lot takes longer.  This is a split of
    the print time from the compute time.
    Tormyst committed Dec 5, 2018
    Configuration menu
    Copy the full SHA
    20f8347 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b0b53c7 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2018

  1. Configuration menu
    Copy the full SHA
    219b448 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b02c014 View commit details
    Browse the repository at this point in the history