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;