Skip to main content

v_authorization_impl/
lib.rs

1#[macro_use]
2extern crate log;
3
4// Ensure exactly one backend is selected
5#[cfg(all(feature = "lmdb", any(feature = "tt_2", feature = "tt_3")))]
6compile_error!("Features \"lmdb\" and \"tt_2/tt_3\" cannot be enabled at the same time. Choose one backend.");
7
8#[cfg(not(any(feature = "lmdb", feature = "tt_2", feature = "tt_3")))]
9compile_error!("Either feature \"lmdb\" or \"tt_2/tt_3\" must be enabled. Choose one backend.");
10
11#[cfg(feature = "lmdb")]
12pub mod az_lmdb;
13#[cfg(any(feature = "tt_2", feature = "tt_3"))]
14pub mod az_tarantool;
15#[cfg(any(feature = "tt_2", feature = "tt_3"))]
16mod runtime_wrapper;
17pub mod az_context;
18mod stat_manager;
19
20#[cfg(feature = "lmdb")]
21pub use az_lmdb::LmdbAzContext;
22#[cfg(any(feature = "tt_2", feature = "tt_3"))]
23pub use az_tarantool::TarantoolAzContext;
24pub use az_context::AzContext;
25pub use v_authorization;
26