1#![no_std]
2
3#[cfg(any(test, feature = "testutils"))]
4extern crate std;
5
6#[cfg(test)]
7extern crate alloc;
8
9pub mod error;
10mod interface;
11
12#[cfg(any(test, feature = "testutils"))]
13pub mod testutils;
14
15#[cfg(test)]
16mod tests;
17
18cfg_if::cfg_if! {
19 if #[cfg(all(feature = "library", not(feature = "testutils")))] {
20 pub use interface::{UpgraderClient, UpgraderInterface};
21 } else {
22 mod contract;
23
24 pub use contract::{Upgrader, UpgraderClient};
25 pub use interface::UpgraderInterface;
26 }
27}