Files
inbuxa-server/tests/src/lib.rs
T
jcoffey-dev 6a53d47106 Mark the files this fork changed (AGPL section 5(a))
The AGPL asks a modified version to carry prominent notices saying it was
modified, and giving a date. Publishing the source is the conveyance that
asks for it, so it wants doing before the repository is public rather than
at the release.

Every upstream file the fork changed now says so in its header, beneath the
notice it came with: 164 files, found by diffing against the upstream
snapshot branch rather than by guessing, so the list is what actually
differs. Files the fork wrote itself already carry their own copyright and
need nothing. Upstream's notices are untouched, which its licence requires
and which was already true.

The README says the same thing in prose, since the obligation is on the
work as a whole and not only its Rust files.

Builds unchanged: the server and the test binary both compile.
2026-09-19 23:48:35 -07:00

69 lines
1.4 KiB
Rust

/*
* SPDX-FileCopyrightText: 2020 Stalwart Labs LLC <[email protected]>
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*
* Modified by Coffey Labs in 2026 for INBUXA.
*/
// inbuxa: composite stores nest store futures deeply enough to pass
// rustc's default query depth
#![recursion_limit = "512"]
#[cfg(test)]
use ::store::registry::bootstrap::Bootstrap;
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
use tikv_jemallocator::Jemalloc;
#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;
#[cfg(test)]
pub mod automation;
#[cfg(test)]
pub mod cluster;
#[cfg(test)]
pub mod directory;
#[cfg(test)]
pub mod imap;
#[cfg(test)]
pub mod jmap;
#[cfg(test)]
pub mod scim;
#[cfg(test)]
pub mod smtp;
#[cfg(test)]
pub mod store;
#[cfg(test)]
pub mod system;
#[cfg(test)]
pub mod telemetry;
#[cfg(test)]
pub mod utils;
#[cfg(test)]
pub mod webdav;
#[cfg(test)]
pub trait AssertConfig {
fn assert_no_errors(self) -> Self;
fn assert_no_warnings(self) -> Self;
}
#[cfg(test)]
impl AssertConfig for Bootstrap {
fn assert_no_errors(self) -> Self {
if !self.errors.is_empty() {
panic!("Errors: {:#?}", self.errors);
}
self
}
fn assert_no_warnings(self) -> Self {
if !self.warnings.is_empty() {
panic!("Warnings: {:#?}", self.warnings);
}
self
}
}