by switching to being built on the plumbing crate, we
Remove a lot of code from leptess
Remove the unsafe keyword from leptess
Will more quickly be able to roll out new features like setvariable
There are some small changes to the API, mostly around some methods now requiring mut. As this isn't yet version 1.0.0, semantic versioning will allow us to break the API. But maybe once this is merged and the next few feature requests are dealt with, it will be time to have the version 1.0.0 release.
The other major API change is around leptonica's Box. I think it was previously sometimes incorrectly wrapping the struct when it only had a borrowed reference (the issue being the drop trait might have freed it prematurely). I've introduced a BorrowedBox in leptonica-plumbing, and made leptess's Box struct generic over the two types.
The examples and the tests barely changing show that the API changes are minor.
Switch to being based off the plumbing crate
by switching to being built on the plumbing crate, we
unsafe
keyword from leptesssetvariable
There are some small changes to the API, mostly around some methods now requiring
mut
. As this isn't yet version 1.0.0, semantic versioning will allow us to break the API. But maybe once this is merged and the next few feature requests are dealt with, it will be time to have the version 1.0.0 release.The other major API change is around leptonica's Box. I think it was previously sometimes incorrectly wrapping the struct when it only had a borrowed reference (the issue being the drop trait might have freed it prematurely). I've introduced a
BorrowedBox
in leptonica-plumbing, and made leptess's Box struct generic over the two types.The examples and the tests barely changing show that the API changes are minor.
https://github.com/houqp/leptess/issues/34