Allow reusing CASTORE_NODE_* and NAR_CONTENTS_* from other crates. Also, there's no need for NAR_CONTENTS_* to be Vecs of bytes, these can just be [u8; _]. Change-Id: I435c08a9d20f6a68266d0c9a70bfc7fdb618ce42 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12915 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz>
20 lines
503 B
Rust
20 lines
503 B
Rust
pub mod composition;
|
|
pub mod fixtures;
|
|
pub mod import;
|
|
pub mod nar;
|
|
pub mod path_info;
|
|
pub mod pathinfoservice;
|
|
pub mod proto;
|
|
pub mod utils;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
// Used as user agent in various HTTP Clients
|
|
const USER_AGENT: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION"));
|
|
|
|
// That's what the rstest_reuse README asks us do, and fails about being unable
|
|
// to find rstest_reuse in crate root.
|
|
#[cfg(test)]
|
|
#[allow(clippy::single_component_path_imports)]
|
|
use rstest_reuse;
|