Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lberezy
Copy link
Contributor

@lberezy lberezy commented Feb 7, 2021

This PR upgrades the versions of tantivy and sled to their latest respective versions, addressing the issue where the current state of the crate is unable to build. This also removes the need to patch the sled crate as those changes have been upstreamed.

I've also upgrade and moved the tempfile dependency to a dev-dependency as it's only used in an example.

There were a few minor breaking changes to both tantivy and sled. I'm not 100% familiar with these crates so I have only done work to get the example to build and run, so not sure about any subtle bugs I may have introduced. My main concern is with how IDs are now generated from a TransactionalTree, required to not hang inside of a transaction context.

@lberezy
Copy link
Contributor Author

lberezy commented Feb 7, 2021

As an aside, I would recommend a full cargo fmt --all across the project to ease further contributions.

@kardeiz
Copy link
Owner

kardeiz commented Feb 7, 2021

@lberezy Thanks, this looks great!

Thanks for pointing out the issue with generating IDs. I haven't been following the development of sled (or tantivy) that closely recently, but it looks like this is now fixed by allowing TransactionalTree to generate IDs (see spacejam/sled#1146). I'll merge your PR, make this change myself, than release

I think I'd cargo fmtted everything, but I will be sure to check in my .rustfmt.toml when I bump the version and release. Thanks!

@kardeiz kardeiz merged commit 5484e2f into kardeiz:master Feb 7, 2021
@kardeiz
Copy link
Owner

kardeiz commented Feb 7, 2021

@lberezy Oh, nevermind, I see you fixed it so the TransactionalTree generates the IDs. Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants