-
Notifications
You must be signed in to change notification settings - Fork 51
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
Replace line-parsing RegEx by manual code #26
Conversation
Codecov Report
@@ Coverage Diff @@
## master #26 +/- ##
==========================================
+ Coverage 91.09% 91.81% +0.71%
==========================================
Files 18 18
Lines 584 623 +39
==========================================
+ Hits 532 572 +40
+ Misses 52 51 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks great! I'm always happy to remove deps when possible. One thing I'd like though is if you undid the rustfmt
run. As much as I'd like the code to be clean, it adds noise to the PR unrelated to the functional changes.
Thanks for the quick review :-) It will take some time for me to revise, this was just a quick experiment to see how far I come :-) |
There is no official spec for this. It's based off of https://github.com/bkeepers/dotenv but there is no official spec. We currently implement only a subset of the parsing capabilities of the original ruby gem. |
I completely rewrote this with something resembling a "real" parser… And updated the tests to verify the new behavior (whitespace around |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! The pipeline failures seem to be due to some flakiness with cargo-junit
. I'm rerunning them now.
This avoids pulling in `regex` and `lazy_static` and makes this a true zero-dependency crate.
No, it was a real failure… I added a comment why those two ifs you suggested to merge need to be separate… |
Oh right, I see the logic issue now. I do need to fix the pipeline though to error out better though it seems. |
Replace line-parsing RegEx by manual code
Replace line-parsing RegEx by manual code
This avoids pulling in
regex
andlazy_static
and makes this a truezero-dependency crate.