Replace serde_derive by re-exports in serde
This commit is contained in:
		
							parent
							
								
									ebead04bb9
								
							
						
					
					
						commit
						26842652fc
					
				| @ -27,11 +27,13 @@ features = ["nightly"] | |||||||
| futures = "0.1.25" | futures = "0.1.25" | ||||||
| http = "0.1.14" | http = "0.1.14" | ||||||
| hyper = "0.12.16" | hyper = "0.12.16" | ||||||
| serde = "1.0.80" | serde_json = "1.0.38" | ||||||
| serde_derive = "1.0.80" |  | ||||||
| serde_json = "1.0.33" |  | ||||||
| serde_urlencoded = "0.5.4" | serde_urlencoded = "0.5.4" | ||||||
| url = "1.7.2" | url = "1.7.2" | ||||||
| 
 | 
 | ||||||
|  | [dev-dependencies.serde] | ||||||
|  | version = "1.0.87" | ||||||
|  | features = ["derive"] | ||||||
|  | 
 | ||||||
| [lib] | [lib] | ||||||
| proc-macro = true | proc-macro = true | ||||||
|  | |||||||
| @ -121,7 +121,7 @@ mod api; | |||||||
| /// # fn main() {
 | /// # fn main() {
 | ||||||
| /// pub mod some_endpoint {
 | /// pub mod some_endpoint {
 | ||||||
| ///     use ruma_api_macros::ruma_api;
 | ///     use ruma_api_macros::ruma_api;
 | ||||||
| ///     use serde_derive::{Deserialize, Serialize};
 | ///     use serde::{Deserialize, Serialize};
 | ||||||
| ///
 | ///
 | ||||||
| ///     ruma_api! {
 | ///     ruma_api! {
 | ||||||
| ///         metadata {
 | ///         metadata {
 | ||||||
| @ -157,7 +157,7 @@ mod api; | |||||||
| ///
 | ///
 | ||||||
| /// pub mod newtype_body_endpoint {
 | /// pub mod newtype_body_endpoint {
 | ||||||
| ///     use ruma_api_macros::ruma_api;
 | ///     use ruma_api_macros::ruma_api;
 | ||||||
| ///     use serde_derive::{Deserialize, Serialize};
 | ///     use serde::{Deserialize, Serialize};
 | ||||||
| ///
 | ///
 | ||||||
| ///     #[derive(Clone, Debug, Deserialize, Serialize)]
 | ///     #[derive(Clone, Debug, Deserialize, Serialize)]
 | ||||||
| ///     pub struct MyCustomType {
 | ///     pub struct MyCustomType {
 | ||||||
|  | |||||||
| @ -2,7 +2,7 @@ | |||||||
| 
 | 
 | ||||||
| pub mod some_endpoint { | pub mod some_endpoint { | ||||||
|     use ruma_api_macros::ruma_api; |     use ruma_api_macros::ruma_api; | ||||||
|     use serde_derive::{Deserialize, Serialize}; |     use serde::{Deserialize, Serialize}; | ||||||
| 
 | 
 | ||||||
|     ruma_api! { |     ruma_api! { | ||||||
|         metadata { |         metadata { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user