-
Notifications
You must be signed in to change notification settings - Fork 81
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
Introduce deer
crate at v0.0.0
#1163
Conversation
Very exciting 🎉 |
Modifies the appendix (excluded from the unmodifiable sections 1..9) to reflect HASH-specific guidance. Reformats the LICENSE as markdown.
Reformats the license as markdown.
Someone might want to lint this; sorry!
Sorry for the direct LICENSE file commits there... thought it'd be easier than going backwards and forwards given we have a fairly rigid format. Separately, I've added explicit reference to you in the |
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.
🎉 This is good to merge!
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.
Thanks @indietyp, I'm really excited for this! Just requesting changes because of quite a few nits, they're not super important but I'd like us to have consistency from the get go
@@ -0,0 +1,113 @@ | |||
# deer |
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.
Purposefully lower case?
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.
Yes, to keep in line with error-stack and how Rust crate naming usually is.
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.
I appreciate that the crate names are usually lower-case, but when referring to them in headings I haven't seen them left as lower-case before.
See:
- Tokio
- Tokio Tracing
- Serde
- Serde JSON
packages/libs/deer/README.md
Outdated
This in turn also means that deer can be used for custom validation while deserializing, while still being able to return all validation issues. | ||
|
||
<sub> | ||
deer might provide a way in the future to describe these constraints. |
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.
Not sure how it'll behave inside an HTML element but should we have deer
code-styled like the rest of the doc?
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.
fixed in 14cde13
```json | ||
{ | ||
"i8": "string" | ||
``` |
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.
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.
I removed formatting for now as I wasn't able to find a way to display incomplete JSON otherwise (99538ec)
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.
Dang that's quite annoying. Perhaps we can revisit later on
Co-authored-by: Alfred Mountfield <am@hash.ai>
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.
LGTM 🎉
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.
Thanks for fixing those 🎉
🌟 What is the purpose of this PR?
deer
is a new crate that implements fail-slow deserialization using multiple backends.(currently planned: json via
serde_json
)This is the first PR in many, which sets the initial project structure.
🔗 Related links
🐾 Next steps
deer
#1164