mirror of
https://github.com/OMGeeky/tarpc.git
synced 2026-01-04 10:32:24 +01:00
fix test needing serde1 feature
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
#![no_implicit_prelude]
|
||||
extern crate tarpc as some_random_other_name;
|
||||
|
||||
#[::tarpc::derive_serde]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum TestData {
|
||||
Black,
|
||||
White,
|
||||
#[cfg(feature = "serde1")]
|
||||
mod serde1_feature {
|
||||
#[::tarpc::derive_serde]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
pub enum TestData {
|
||||
Black,
|
||||
White,
|
||||
}
|
||||
}
|
||||
|
||||
#[::tarpc::service]
|
||||
pub trait ColorProtocol {
|
||||
async fn get_opposite_color(color: u8) -> u8;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user