Skip to content

Main branch does not compile for some versions of locally-installed flatc #197

@stephanemagnenat

Description

@stephanemagnenat

Fetching a fresh main branch:
git clone git@github.com:planus-org/planus.git

And compiling it:
cd planus && cargo build

Leads to the following errors:

   Compiling rust-test v0.4.0 (/home/steph/test/planus/test/rust)
error[E0405]: cannot find trait `SafeSliceAccess` in crate `flatbuffers`
  --> /home/steph/test/planus/target/debug/build/rust-test-c32ec9e90a91632a/out/planus_test/alignment_generated.rs:29:19
   |
29 | impl flatbuffers::SafeSliceAccess for NoAlign {}
   |                   ^^^^^^^^^^^^^^^ not found in `flatbuffers`

error[E0405]: cannot find trait `SafeSliceAccess` in crate `flatbuffers`
   --> /home/steph/test/planus/target/debug/build/rust-test-c32ec9e90a91632a/out/planus_test/alignment_generated.rs:129:19
    |
129 | impl flatbuffers::SafeSliceAccess for Align4 {}
    |                   ^^^^^^^^^^^^^^^ not found in `flatbuffers`

error[E0405]: cannot find trait `SafeSliceAccess` in crate `flatbuffers`
   --> /home/steph/test/planus/target/debug/build/rust-test-c32ec9e90a91632a/out/planus_test/alignment_generated.rs:229:19
    |
229 | impl flatbuffers::SafeSliceAccess for Align16 {}
    |                   ^^^^^^^^^^^^^^^ not found in `flatbuffers`

error[E0405]: cannot find trait `SafeSliceAccess` in crate `flatbuffers`
   --> /home/steph/test/planus/target/debug/build/rust-test-c32ec9e90a91632a/out/planus_test/alignment_generated.rs:332:19
    |
332 | impl flatbuffers::SafeSliceAccess for AlignmentStruct {}
    |                   ^^^^^^^^^^^^^^^ not found in `flatbuffers`

For more information about this error, try `rustc --explain E0405`.
error: could not compile `rust-test` (lib) due to 4 previous errors

I assume that this is due to some changes on the google flatbuffers library side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions