Add some empty lines to make ruma/Cargo.toml easier to read

This commit is contained in:
Jonas Platte 2023-09-27 16:25:07 +02:00
parent 51d104c56c
commit daea31dbe5
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -104,9 +104,11 @@ compat = [
] ]
# Don't validate the version part in `KeyId`. # Don't validate the version part in `KeyId`.
compat-key-id = ["ruma-common/compat-key-id"] compat-key-id = ["ruma-common/compat-key-id"]
# Allow some user IDs that are invalid even with the specified historical # Allow some user IDs that are invalid even with the specified historical
# user ID scheme. # user ID scheme.
compat-user-id = ["ruma-common/compat-user-id"] compat-user-id = ["ruma-common/compat-user-id"]
# Allow some mandatory fields in requests / responses to be missing, defaulting # Allow some mandatory fields in requests / responses to be missing, defaulting
# them to an empty string in deserialization. # them to an empty string in deserialization.
compat-empty-string-null = [ compat-empty-string-null = [
@ -115,26 +117,33 @@ compat-empty-string-null = [
"ruma-events?/compat-empty-string-null", "ruma-events?/compat-empty-string-null",
"ruma-federation-api?/compat-empty-string-null", "ruma-federation-api?/compat-empty-string-null",
] ]
# Allow certain fields to be `null` for compatibility, treating that the same as # Allow certain fields to be `null` for compatibility, treating that the same as
# the field being absent. # the field being absent.
compat-null = ["ruma-common/compat-null"] compat-null = ["ruma-common/compat-null"]
# Allow certain fields to be absent even though the spec marks them as # Allow certain fields to be absent even though the spec marks them as
# mandatory. Deserialization will yield a default value like an empty string. # mandatory. Deserialization will yield a default value like an empty string.
compat-optional = [ compat-optional = [
"ruma-common/compat-optional", "ruma-common/compat-optional",
"ruma-events?/compat-optional", "ruma-events?/compat-optional",
] ]
# Unset avatars by sending an empty string, same as what Element Web does, c.f. # Unset avatars by sending an empty string, same as what Element Web does, c.f.
# https://github.com/matrix-org/matrix-spec/issues/378#issuecomment-1055831264 # https://github.com/matrix-org/matrix-spec/issues/378#issuecomment-1055831264
compat-unset-avatar = ["ruma-client-api?/compat-unset-avatar"] compat-unset-avatar = ["ruma-client-api?/compat-unset-avatar"]
# Always serialize the threepids response field in `get_3pids::v3::Response`, # Always serialize the threepids response field in `get_3pids::v3::Response`,
# even if its value is an empty list. # even if its value is an empty list.
compat-get-3pids = ["ruma-client-api?/compat-get-3pids"] compat-get-3pids = ["ruma-client-api?/compat-get-3pids"]
# Accept `message` as an alias for `error` in `upload_signatures::v3::Failure`, # Accept `message` as an alias for `error` in `upload_signatures::v3::Failure`,
# since that's what Synapse sends. # since that's what Synapse sends.
compat-upload-signatures = ["ruma-client-api?/compat-upload-signatures"] compat-upload-signatures = ["ruma-client-api?/compat-upload-signatures"]
# Allow extra characters in signature IDs not allowed in the specification. # Allow extra characters in signature IDs not allowed in the specification.
compat-signature-id = ["ruma-signatures?/compat-signature-id"] compat-signature-id = ["ruma-signatures?/compat-signature-id"]
# Allow TagInfo to contain a stringified floating-point value for the `order` field. # Allow TagInfo to contain a stringified floating-point value for the `order` field.
compat-tag-info = ["ruma-events?/compat-tag-info"] compat-tag-info = ["ruma-events?/compat-tag-info"]