-
Notifications
You must be signed in to change notification settings - Fork 50
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
Refactor storage into a separate crate #90
Refactor storage into a separate crate #90
Conversation
fe9e766
to
ab9e837
Compare
03b0d83
to
3637a95
Compare
3637a95
to
b649038
Compare
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 looking great! I see some minor things changed in the python wrapper, are there any breaking changes from an FFI perspective, i.e. the JavaScript wrapper must also be updated? If so, I am happy to pick that up.
@@ -126,7 +136,9 @@ fn percent_encode_into(result: &mut String, s: &str) { | |||
push_iter_str(result, utf8_percent_encode(s, NON_ALPHANUMERIC)) | |||
} | |||
|
|||
/// A trait implemented by types that can be converted into Options | |||
pub trait IntoOptions<'a> { |
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.
Is there a reason why TryInto
for Options is not used? If this for some lower Rust version compatibility?
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.
It's actually because that creates issues accepting a straight Options instance - it implements From<Self>
which means TryFrom<Self>
is implemented with the Infallable
error type, not the crate's error type.
Most of the changes there are added docstrings, but the |
b649038
to
c818ff2
Compare
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
…emove_all Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
5e4d07f
to
8fa2043
Compare
…refactor-storage Refactor storage into a separate crate
Also improves the public API of 'Store' and tidies up the crate exports.
Includes updates to scan records without a category filter (preparation for profile export/migration support).
In draft due to breaking changes, awaiting another minor release.
Follow up from #89