graphql-rust / juniper

GraphQL server library for Rust
Other
5.72k stars 425 forks source link

Rust 1.67 emitting schema non-utf-8 field names #1143

Closed dmtrKovalenko closed 1 year ago

dmtrKovalenko commented 1 year ago

Describe the bug After updating to rust 1.67 schema output started mangling some field names and output non-utf8 characters

To Reproduce Open this codesandobx:

https://codesandbox.io/p/sandbox/cocky-jackson-jnku3m?file=%2Fsrc%2Fmain.rs&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A20%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A20%7D%5D

Spawn a new terminal and cargo run, you will see the a non utf-8 character. Then go back to 1.66 rustup default 1.66 and you will see correct output.

Expected behavior No non-utf8 characters

Additional context Add any other context about the problem here.

MrPiao commented 1 year ago

Probably related to #1142

tyranron commented 1 year ago

@MrPiao @dmtrKovalenko should be fixed in 0.15.11 release.

dmtrKovalenko commented 1 year ago

Thanks for a quick resolution, it works with 0.15.11