state-res: Stabilize deserializing stringified integers for PLs
Removes the `compat` feature.
This commit is contained in:
		
							parent
							
								
									ca3ca023a4
								
							
						
					
					
						commit
						da462adab1
					
				@ -11,6 +11,8 @@ Improvements:
 | 
				
			|||||||
* Add `m.federate` to `auth_check`:
 | 
					* Add `m.federate` to `auth_check`:
 | 
				
			||||||
  <https://github.com/matrix-org/matrix-spec/pull/1103>
 | 
					  <https://github.com/matrix-org/matrix-spec/pull/1103>
 | 
				
			||||||
* Add `RoomVersion::V10` (MSC3604)
 | 
					* Add `RoomVersion::V10` (MSC3604)
 | 
				
			||||||
 | 
					* Deserialize stringified integers for power levels without the `compat` feature
 | 
				
			||||||
 | 
					  * Removes the `compat` feature
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 0.7.0
 | 
					# 0.7.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -15,7 +15,6 @@ rust-version = "1.60"
 | 
				
			|||||||
all-features = true
 | 
					all-features = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[features]
 | 
					[features]
 | 
				
			||||||
compat = []
 | 
					 | 
				
			||||||
unstable-exhaustive-types = []
 | 
					unstable-exhaustive-types = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[dependencies]
 | 
					[dependencies]
 | 
				
			||||||
 | 
				
			|||||||
@ -337,18 +337,13 @@ where
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#[derive(Deserialize)]
 | 
					#[derive(Deserialize)]
 | 
				
			||||||
struct PowerLevelsContentFields {
 | 
					struct PowerLevelsContentFields {
 | 
				
			||||||
    #[cfg_attr(
 | 
					    #[serde(
 | 
				
			||||||
        feature = "compat",
 | 
					        default,
 | 
				
			||||||
        serde(deserialize_with = "ruma_common::serde::btreemap_deserialize_v1_powerlevel_values")
 | 
					        deserialize_with = "ruma_common::serde::btreemap_deserialize_v1_powerlevel_values"
 | 
				
			||||||
    )]
 | 
					    )]
 | 
				
			||||||
    #[serde(default)]
 | 
					 | 
				
			||||||
    users: BTreeMap<OwnedUserId, Int>,
 | 
					    users: BTreeMap<OwnedUserId, Int>,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    #[cfg_attr(
 | 
					    #[serde(default, deserialize_with = "ruma_common::serde::deserialize_v1_powerlevel")]
 | 
				
			||||||
        feature = "compat",
 | 
					 | 
				
			||||||
        serde(deserialize_with = "ruma_common::serde::deserialize_v1_powerlevel")
 | 
					 | 
				
			||||||
    )]
 | 
					 | 
				
			||||||
    #[serde(default)]
 | 
					 | 
				
			||||||
    users_default: Int,
 | 
					    users_default: Int,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -88,7 +88,6 @@ compat = [
 | 
				
			|||||||
    "ruma-common/compat",
 | 
					    "ruma-common/compat",
 | 
				
			||||||
    "ruma-client-api?/compat",
 | 
					    "ruma-client-api?/compat",
 | 
				
			||||||
    "ruma-federation-api?/compat",
 | 
					    "ruma-federation-api?/compat",
 | 
				
			||||||
    "ruma-state-res?/compat",
 | 
					 | 
				
			||||||
]
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Specific compatibility for past ring public/private key documents.
 | 
					# Specific compatibility for past ring public/private key documents.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user