Drop pregenerated modules

This commit is contained in:
Nadja Reitzenstein 2022-05-20 19:25:30 +02:00
parent 7784313a95
commit 523c091284

View File

@ -1,71 +1,41 @@
pub use capnpc::schema_capnp; pub use capnpc::schema_capnp;
#[cfg(feature = "generated")]
pub mod authenticationsystem_capnp { pub mod authenticationsystem_capnp {
include!(concat!(env!("OUT_DIR"), "/authenticationsystem_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/authenticationsystem_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod authenticationsystem_capnp;
#[cfg(feature = "generated")]
pub mod connection_capnp { pub mod connection_capnp {
include!(concat!(env!("OUT_DIR"), "/connection_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/connection_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod connection_capnp;
#[cfg(feature = "generated")]
pub mod general_capnp { pub mod general_capnp {
include!(concat!(env!("OUT_DIR"), "/general_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/general_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod general_capnp;
#[cfg(feature = "generated")]
pub mod machine_capnp { pub mod machine_capnp {
include!(concat!(env!("OUT_DIR"), "/machine_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/machine_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod machine_capnp;
#[cfg(feature = "generated")]
pub mod machinesystem_capnp { pub mod machinesystem_capnp {
include!(concat!(env!("OUT_DIR"), "/machinesystem_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/machinesystem_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod machinesystem_capnp;
#[cfg(feature = "generated")]
pub mod permissionsystem_capnp { pub mod permissionsystem_capnp {
include!(concat!(env!("OUT_DIR"), "/permissionsystem_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/permissionsystem_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod permissionsystem_capnp;
#[cfg(feature = "generated")]
pub mod role_capnp { pub mod role_capnp {
include!(concat!(env!("OUT_DIR"), "/role_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/role_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod role_capnp;
#[cfg(feature = "generated")]
pub mod space_capnp { pub mod space_capnp {
include!(concat!(env!("OUT_DIR"), "/space_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/space_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod space_capnp;
#[cfg(feature = "generated")]
pub mod user_capnp { pub mod user_capnp {
include!(concat!(env!("OUT_DIR"), "/user_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/user_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod user_capnp;
#[cfg(feature = "generated")]
pub mod usersystem_capnp { pub mod usersystem_capnp {
include!(concat!(env!("OUT_DIR"), "/usersystem_capnp.rs")); include!(concat!(env!("OUT_DIR"), "/usersystem_capnp.rs"));
} }
#[cfg(not(feature = "generated"))]
pub mod usersystem_capnp;