diff options
Diffstat (limited to 'lib/sellershut-core')
-rw-r--r-- | lib/sellershut-core/build.rs | 4 | ||||
-rw-r--r-- | lib/sellershut-core/proto/profile/profile.proto | 2 | ||||
-rw-r--r-- | lib/sellershut-core/src/lib.rs | 4 | ||||
-rw-r--r-- | lib/sellershut-core/src/profile.rs | 3 |
4 files changed, 7 insertions, 6 deletions
diff --git a/lib/sellershut-core/build.rs b/lib/sellershut-core/build.rs index 110bc22..13e3d06 100644 --- a/lib/sellershut-core/build.rs +++ b/lib/sellershut-core/build.rs @@ -15,7 +15,7 @@ impl Entity { #[cfg(feature = "auth")] Entity::Auth => { res.extend(vec!["proto/auth/auth.proto"]); - }, + } #[cfg(feature = "profile")] Entity::Profile => { res.extend(vec!["proto/profile/profile.proto"]); @@ -81,7 +81,7 @@ fn build_proto(package: &str, entity: Entity) { .compile_protos(&entity.protos(), include_paths).unwrap(); } -#[cfg(all(feature = "serde", any(feature = "auth",feature = "profile")))] +#[cfg(all(feature = "serde", any(feature = "auth", feature = "profile")))] fn add_serde(config: tonic_build::Builder) -> tonic_build::Builder { config.type_attribute( ".", diff --git a/lib/sellershut-core/proto/profile/profile.proto b/lib/sellershut-core/proto/profile/profile.proto index 742dc7b..61181b3 100644 --- a/lib/sellershut-core/proto/profile/profile.proto +++ b/lib/sellershut-core/proto/profile/profile.proto @@ -34,8 +34,6 @@ message CreateUserRequest { message CreateUserResponse { // Temporary assigned id string temp_id = 1; - // Timestamp when the user was created - google.protobuf.Timestamp created_at = 2; } // Message to finalise profile creation diff --git a/lib/sellershut-core/src/lib.rs b/lib/sellershut-core/src/lib.rs index c300495..70544cf 100644 --- a/lib/sellershut-core/src/lib.rs +++ b/lib/sellershut-core/src/lib.rs @@ -7,11 +7,13 @@ )] /// Protobuf types -#[cfg(feature = "auth")] +#[cfg(any(feature = "auth", feature = "profile"))] pub mod google; /// Interactions with Auth server +#[cfg(feature = "auth")] pub mod auth; /// Interactions with Profile server +#[cfg(feature = "profile")] pub mod profile; diff --git a/lib/sellershut-core/src/profile.rs b/lib/sellershut-core/src/profile.rs index bf366b1..06484d9 100644 --- a/lib/sellershut-core/src/profile.rs +++ b/lib/sellershut-core/src/profile.rs @@ -1,3 +1,4 @@ tonic::include_proto!("profile"); /// Profile file descriptor -pub const PROFILE_FILE_DESCRIPTOR_SET: &[u8] = tonic::include_file_descriptor_set!("profile_descriptor"); +pub const PROFILE_FILE_DESCRIPTOR_SET: &[u8] = + tonic::include_file_descriptor_set!("profile_descriptor"); |