events: Put pdu module behind an unstable feature flag
This commit is contained in:
		
							parent
							
								
									36bc8bf73a
								
							
						
					
					
						commit
						1df1256a86
					
				| @ -20,6 +20,7 @@ compat = ["ruma-events-macros/compat"] | ||||
| markdown = ["pulldown-cmark"] | ||||
| 
 | ||||
| unstable-exhaustive-types = [] | ||||
| unstable-pdu = [] | ||||
| unstable-pre-spec = [] | ||||
| 
 | ||||
| [dependencies] | ||||
|  | ||||
| @ -161,6 +161,8 @@ pub mod forwarded_room_key; | ||||
| pub mod fully_read; | ||||
| pub mod ignored_user_list; | ||||
| pub mod key; | ||||
| #[cfg(feature = "unstable-pdu")] | ||||
| #[cfg_attr(docsrs, doc(cfg(feature = "unstable-pdu")))] | ||||
| pub mod pdu; | ||||
| pub mod policy; | ||||
| pub mod presence; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| #![cfg(not(feature = "unstable-pre-spec"))] | ||||
| #![cfg(all(feature = "unstable-pdu", not(feature = "unstable-pre-spec")))] | ||||
| 
 | ||||
| use std::{collections::BTreeMap, convert::TryInto}; | ||||
| 
 | ||||
|  | ||||
| @ -34,6 +34,7 @@ tracing = "0.1.26" | ||||
| criterion = "0.3.3" | ||||
| maplit = "1.0.2" | ||||
| rand = "0.8.3" | ||||
| ruma-events = { version = "0.24.5", path = "../ruma-events", features = ["unstable-pdu"] } | ||||
| tracing-subscriber = "0.2.15" | ||||
| 
 | ||||
| [[bench]] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user