67e4edcd8b
We were aliasing it on import half the time anyway
35 lines
770 B
Rust
35 lines
770 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
macro_rules! protobuf {
|
|
($ident:ident) => {
|
|
pub mod $ident {
|
|
include!(concat!(
|
|
env!("OUT_DIR"),
|
|
concat!("/anki.", stringify!($ident), ".rs")
|
|
));
|
|
}
|
|
pub use $ident::*;
|
|
};
|
|
}
|
|
|
|
protobuf!(backend);
|
|
protobuf!(card_rendering);
|
|
protobuf!(cards);
|
|
protobuf!(collection);
|
|
protobuf!(config);
|
|
protobuf!(deckconfig);
|
|
protobuf!(decks);
|
|
protobuf!(generic);
|
|
protobuf!(i18n);
|
|
protobuf!(import_export);
|
|
protobuf!(links);
|
|
protobuf!(media);
|
|
protobuf!(notes);
|
|
protobuf!(notetypes);
|
|
protobuf!(scheduler);
|
|
protobuf!(search);
|
|
protobuf!(stats);
|
|
protobuf!(sync);
|
|
protobuf!(tags);
|