#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[cfg(not(panic = "unwind"))]
compile_error!(
"navree requires `panic = \"unwind\"`: a panicking handler must not abort the whole server"
);
mod app;
mod builder;
mod collide;
mod command;
mod container;
mod error;
mod graph;
mod introspect;
mod key;
mod lazy;
mod lifecycle;
mod module;
mod plugin;
mod plugin_graph;
mod publish;
mod report;
mod resolver;
pub use app::{App, AppBuilder, AppContext, Contributed, ModuleInfo, Navree, WeakAppContext};
pub use builder::{Factory, ModuleBuilder};
pub use command::{CommandFn, CommandSpec};
pub use container::RequestScope;
pub use error::{BootErrors, KernelError};
pub use graph::{CommandInfo, GraphReport, ModuleReport, ProviderReport};
pub use key::{ModuleId, ProviderKey, Scope};
pub use lazy::Lazy;
pub use lifecycle::Lifecycle;
pub use module::{CodeConfigured, ConfiguredModule, Injectable, IntoModules, Module};
pub use plugin::{PluginInfo, PublishTag, Publishable};
pub use report::{PluginModuleReport, PluginReport, PluginsReport};
pub use resolver::Resolver;
#[doc(hidden)]
pub mod __private {
pub use crate::builder::PassedModule;
pub use crate::collide::{
acts_for, acts_for_community_plugin, acts_for_reason, imports, is_app_module,
is_community_plugin,
};
pub use crate::command::FRAMEWORK_COMMANDS;
pub use crate::module::{ConfiguredPlainModule, PlainModule};
pub use crate::plugin::{
APP_ONLY_PROVIDERS, FIRST_PARTY, FRAMEWORK_CRATES, MODEL_HOOK_KEY, RESERVED_NAMESPACES,
default_namespace, is_namespace, namespace_text,
};
pub use crate::publish::is_safe_relative_path;
pub use crate::publish::{PublishRefused, Published, publish_files};
pub use crate::resolver::app_in_chain;
}
pub type BoxError = Box<dyn std::error::Error + Send + Sync + 'static>;
pub type BoxFuture<'a, T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Send + 'a>>;