Skip to content
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

the generated rust code can't compile(rustc 1.64.0; flatc 22.9.29; 5.15.71-1-MANJARO) #7573

Closed
hxzhao527 opened this issue Oct 8, 2022 · 3 comments
Labels

Comments

@hxzhao527
Copy link

Just follow the Tutorial.

  1. schema from monster.fbs
  2. use flatc to generate
❯ flatc --version
flatc version 22.9.29
❯ flatc --rust --gen-mutable --rust-serialize src/monster.fbs
  1. Cargo.toml
[dependencies]
flatbuffers = "2.1.2"
  1. compile check
❯ cargo check
error[E0437]: type `Scalar` is not a member of trait `flatbuffers::EndianScalar`
   --> src/./monster_generated.rs:112:3
    |
112 |   type Scalar = i8;
    |   ^^^^^^^^^^^^^^^^^ not a member of trait `flatbuffers::EndianScalar`
@hxzhao527 hxzhao527 changed the title the generated rust code can't compile( rustc 1.64.0; flatc 22.9.29; 5.15.71-1-MANJARO) the generated rust code can't compile(rustc 1.64.0; flatc 22.9.29; 5.15.71-1-MANJARO) Oct 8, 2022
@CasperN
Copy link
Collaborator

CasperN commented Oct 8, 2022

This will be because I have not published the 22.9.29 version of the Rust crate. I was waiting on #7553 before doing that, but I guess that PR will have to wait. In the mean time, the previous flatbuffer release will be compatible with the current rust code on crates.io

@github-actions
Copy link

github-actions bot commented Apr 9, 2023

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Apr 9, 2023
@github-actions
Copy link

This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants