pkg/
lib.rs

1//#![cfg_attr(target_os = "redox", feature(io_error_more))]
2
3#[cfg(feature = "library")]
4pub mod backend;
5#[cfg(feature = "library")]
6pub use backend::Error;
7#[cfg(feature = "library")]
8pub mod callback;
9#[cfg(feature = "library")]
10pub use callback::Callback;
11#[cfg(feature = "library")]
12pub mod net_backend;
13pub mod package;
14pub use package::{Package, PackageInfo, PackageName};
15pub mod recipes;
16
17#[cfg(feature = "library")]
18mod library;
19#[cfg(feature = "library")]
20mod package_list;
21#[cfg(feature = "library")]
22mod repo_manager;
23#[cfg(feature = "library")]
24mod sorensen;
25#[cfg(feature = "library")]
26pub use library::Library;
27
28#[cfg(feature = "library")]
29const DOWNLOAD_PATH: &str = "/tmp/pkg_download/";
30
31// make them not relative
32#[cfg(feature = "library")]
33const PACKAGES_PATH: &str = "etc/pkg/packages.toml";