From 523c091284e20f00c8a79ef8cbcd8e06866eb979 Mon Sep 17 00:00:00 2001 From: Nadja Reitzenstein Date: Fri, 20 May 2022 19:25:30 +0200 Subject: [PATCH] Drop pregenerated modules --- api/src/schema.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/api/src/schema.rs b/api/src/schema.rs index d573cec..1cd0a5c 100644 --- a/api/src/schema.rs +++ b/api/src/schema.rs @@ -1,71 +1,41 @@ pub use capnpc::schema_capnp; -#[cfg(feature = "generated")] pub mod authenticationsystem_capnp { include!(concat!(env!("OUT_DIR"), "/authenticationsystem_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod authenticationsystem_capnp; -#[cfg(feature = "generated")] pub mod connection_capnp { include!(concat!(env!("OUT_DIR"), "/connection_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod connection_capnp; -#[cfg(feature = "generated")] pub mod general_capnp { include!(concat!(env!("OUT_DIR"), "/general_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod general_capnp; -#[cfg(feature = "generated")] pub mod machine_capnp { include!(concat!(env!("OUT_DIR"), "/machine_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod machine_capnp; -#[cfg(feature = "generated")] pub mod machinesystem_capnp { include!(concat!(env!("OUT_DIR"), "/machinesystem_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod machinesystem_capnp; -#[cfg(feature = "generated")] pub mod permissionsystem_capnp { include!(concat!(env!("OUT_DIR"), "/permissionsystem_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod permissionsystem_capnp; -#[cfg(feature = "generated")] pub mod role_capnp { include!(concat!(env!("OUT_DIR"), "/role_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod role_capnp; -#[cfg(feature = "generated")] pub mod space_capnp { include!(concat!(env!("OUT_DIR"), "/space_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod space_capnp; -#[cfg(feature = "generated")] pub mod user_capnp { include!(concat!(env!("OUT_DIR"), "/user_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod user_capnp; -#[cfg(feature = "generated")] pub mod usersystem_capnp { include!(concat!(env!("OUT_DIR"), "/usersystem_capnp.rs")); } -#[cfg(not(feature = "generated"))] -pub mod usersystem_capnp;