anki/rslib/src/prelude.rs
Damien Elmes a83c4a7da7 Move generated protobuf into anki_proto
Due to the orphan rule, this meant removing our usages of impl ProtoStruct,
or converting them to a trait when they were used commonly.

rslib now directly references anki_proto and anki_i18n, instead of
'pub use'-ing them, and we can put the generated files back in OUT_DIR.
2023-06-12 15:47:51 +10:00

40 lines
1.2 KiB
Rust

// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
pub use anki_i18n::I18n;
pub use snafu::ResultExt;
pub use crate::card::Card;
pub use crate::card::CardId;
pub use crate::collection::Collection;
pub use crate::config::BoolKey;
pub use crate::deckconfig::DeckConfig;
pub use crate::deckconfig::DeckConfigId;
pub use crate::decks::Deck;
pub use crate::decks::DeckId;
pub use crate::decks::DeckKind;
pub use crate::decks::NativeDeckName;
pub use crate::error::AnkiError;
pub use crate::error::OrInvalid;
pub use crate::error::OrNotFound;
pub use crate::error::Result;
pub use crate::invalid_input;
pub use crate::media::Sha1Hash;
pub use crate::notes::Note;
pub use crate::notes::NoteId;
pub use crate::notetype::Notetype;
pub use crate::notetype::NotetypeId;
pub use crate::ops::Op;
pub use crate::ops::OpChanges;
pub use crate::ops::OpOutput;
pub use crate::require;
pub use crate::revlog::RevlogId;
pub use crate::search::SearchBuilder;
pub use crate::search::TryIntoSearch;
#[cfg(test)]
pub(crate) use crate::tests::*;
pub use crate::timestamp::TimestampMillis;
pub use crate::timestamp::TimestampSecs;
pub(crate) use crate::types::IntoNewtypeVec;
pub use crate::types::Usn;