conan2_rs/lib.rs
1//!# conan-rs: A Rust library for integrating conan into rust custom build scripts.
2//! ## References
3//! - [Conan Reference](https://docs.conan.io/2/reference.html)
4//! - [Json schema](https://docs.conan.io/2/reference/commands/formatters/graph_info_json_formatter.html)
5//! - [Conan source code](https://github.com/conan-io/conan)
6
7pub mod command;
8pub mod model;
9
10/// Conan binary override environment variable
11const CONAN_ENV: &str = "CONAN";
12
13/// Default Conan binary name
14const DEFAULT_CONAN: &str = "conan";
15
16/// Conan output file
17const CONAN_OUT_FILE: &'static str = "conanbuildinfo.json";
18
19pub fn add(left: u64, right: u64) -> u64 {
20 left + right
21}
22
23#[cfg(test)]
24mod tests {
25 use super::*;
26
27 #[test]
28 fn it_works() {
29 let result = add(2, 2);
30 assert_eq!(result, 4);
31 }
32}