mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00

Will be handy to use it in our other scripts in the future too - thanks Rumo! Results of benchmarking ./run before and after these crate splits: - Touching a proto file leads to a slight increase: about +90ms - Touching an rslib file leads to a bigger decrease, as there's less to recompile: about -700ms And ./ninja test is even better: about +200ms and -3800ms.
57 lines
1 KiB
Rust
57 lines
1 KiB
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
#![deny(unused_must_use)]
|
|
|
|
pub mod adding;
|
|
pub mod backend;
|
|
pub mod browser_table;
|
|
pub mod card;
|
|
pub mod card_rendering;
|
|
pub mod cloze;
|
|
pub mod collection;
|
|
pub mod config;
|
|
pub mod dbcheck;
|
|
pub mod deckconfig;
|
|
pub mod decks;
|
|
pub mod error;
|
|
pub mod findreplace;
|
|
pub mod image_occlusion;
|
|
pub mod import_export;
|
|
pub mod latex;
|
|
pub mod links;
|
|
pub mod log;
|
|
mod markdown;
|
|
pub mod media;
|
|
pub mod notes;
|
|
pub mod notetype;
|
|
pub mod ops;
|
|
mod preferences;
|
|
pub mod prelude;
|
|
pub mod revlog;
|
|
pub mod scheduler;
|
|
pub mod search;
|
|
pub mod serde;
|
|
mod stats;
|
|
pub mod storage;
|
|
pub mod sync;
|
|
pub mod tags;
|
|
pub mod template;
|
|
pub mod template_filters;
|
|
pub(crate) mod tests;
|
|
pub mod text;
|
|
pub mod timestamp;
|
|
mod typeanswer;
|
|
pub mod types;
|
|
pub mod undo;
|
|
pub mod version;
|
|
|
|
use std::env;
|
|
|
|
use lazy_static::lazy_static;
|
|
|
|
lazy_static! {
|
|
pub(crate) static ref PYTHON_UNIT_TESTS: bool = env::var("ANKI_TEST_MODE").is_ok();
|
|
}
|
|
|
|
// temporary during proto migration
|