-
Notifications
You must be signed in to change notification settings - Fork 382
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
Use underscore to escape keywords #618
Labels
rust-protobuf-v3
Issued to be fixed to release version 3
Comments
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
E. g. for message field `fn`, rust field is `fn_`, but setter should be `set_fn`, not `set_fn_`. Issue #618
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
instead of `_pb` suffix. Issue #618
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
stepancheg
changed the title
Use raw identifiers for reserved words
Use underscore to escape keywords
Apr 29, 2022
stepancheg
added a commit
that referenced
this issue
Apr 29, 2022
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
E. g. for message field `fn`, rust field is `fn_`, but setter should be `set_fn`, not `set_fn_`. Issue stepancheg#618
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
instead of `_pb` suffix. Issue stepancheg#618
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
akhramov
pushed a commit
to cognitedata/rust-protobuf
that referenced
this issue
Jan 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In version 2 identifiers are escaped with prefixes like
message_
orenum_
.The plan was to use raw identifiers for keywords, but not all keywords can be made raw identifiers.
So now the plan is to use
_
suffix to escape everything.The text was updated successfully, but these errors were encountered: