#10 Sanakirja doesn’t build on latest version

Closed on December 28, 2022
irevoire on December 27, 2022

Currently, on the latest available version on crates.io, sanakirja doesn’t build with the following error;

error[E0046]: not all trait items implemented, missing: `alloc_contiguous`
   --> /Users/irevoire/.cargo/registry/src/github.com-1ecc6299db9ec823/sanakirja-1.2.16/src/environment/muttxn.rs:471:1
    |
471 | impl<E: Borrow<Env>, T> sanakirja_core::AllocPage for MutTxn<E, T> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `alloc_contiguous` in implementation
    |
    = help: implement the missing item: `fn alloc_contiguous(&mut self, _: u64) -> Result<MutPage, <Self as sanakirja_core::LoadPage>::Error> { todo!() }`

Steps to reproduce;

  1. Create a new project; cargo new truc
  2. Import sanakirja; cargo add sanakirja
  3. Do anything; cargo check

Sanakirja also doesn’t build on the main branch but it looks easier to fix 😁

Someone added a bla directory in the workspace of sanakirja but it doesn’t exists and thus cargo throw the following error;

error: failed to load manifest for workspace member `/Users/irevoire/sanakirja/bla`

Caused by:
  failed to read `/Users/irevoire/sanakirja/bla/Cargo.toml`

Caused by:
  No such file or directory (os error 2)

Step to reproduce;

  1. Clone sanakirja; pijul clone https://nest.pijul.com/pijul/sanakirja
  2. Move in the sanakirja repo; cd sanakirja/sanakirja
  3. Do anything; cargo check
irevoire added a change on December 27, 2022
IXHKA46LGAWUCGMZ6VWHCVEVSDQSFRAGDKBNLCXUBTJBIZR7EPJAC
main
pmeunier on December 28, 2022

Indeed, I yanked the wrong versions, this is fixed now. Thanks for the patch.

pmeunier closed this discussion on December 28, 2022