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

Compile error with writing geometry collections #15

Closed
kylebarron opened this issue Nov 5, 2024 · 1 comment · Fixed by #14
Closed

Compile error with writing geometry collections #15

kylebarron opened this issue Nov 5, 2024 · 1 comment · Fixed by #14

Comments

@kylebarron
Copy link
Member

Compiling in release mode and uncommenting writing of geometry collections from within write_geometry we get a compile error.

This can be seen with cargo bench --bench parse:

> cargo bench --bench parse
   Compiling wkb v0.1.0 (/Users/kyle/github/kylebarron/wkb)
error[E0275]: overflow evaluating the requirement `&mut Vec<u8>: std::io::Write`
  |
  = help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`parse`)
  = note: required for `&mut &mut Vec<u8>` to implement `std::io::Write`
  = note: 127 redundant requirements hidden
  = note: required for `&mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut ...` to implement `std::io::Write`
  = note: required for `&mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut &mut ...` to implement `byteorder::io::WriteBytesExt`
  = note: the full name for the type has been written to '/Users/kyle/github/kylebarron/wkb/target/release/deps/parse-3a868d0a8d116a29.long-type-4795899411957364792.txt'
  = note: consider using `--verbose` to print the full type name to the console
  = note: the full name for the type has been written to '/Users/kyle/github/kylebarron/wkb/target/release/deps/parse-3a868d0a8d116a29.long-type-4795899411957364792.txt'
  = note: consider using `--verbose` to print the full type name to the console

For more information about this error, try `rustc --explain E0275`.
error: could not compile `wkb` (bench "parse") due to 1 previous error
@kylebarron
Copy link
Member Author

As a note this only shows up in release mode from calling code. It's not an issue to compile with the library itself, ie in cargo check

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 a pull request may close this issue.

1 participant