Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/lib.rs @ 44577:f8427841c8fc
merge with stable
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 20 Mar 2020 17:18:14 +0900 |
parents | ece43c79333e df5dfee8cfb4 |
children | 9f96beb9bafe |
line wrap: on
line diff
--- a/rust/hg-core/src/lib.rs Thu Mar 19 14:54:10 2020 -0400 +++ b/rust/hg-core/src/lib.rs Fri Mar 20 17:18:14 2020 +0900 @@ -27,6 +27,14 @@ pub mod re2; pub mod utils; +// Remove this to see (potential) non-artificial compile failures. MacOS +// *should* compile, but fail to compile tests for example as of 2020-03-06 +#[cfg(not(target_os = "linux"))] +compile_error!( + "`hg-core` has only been tested on Linux and will most \ + likely not behave correctly on other platforms." +); + use crate::utils::hg_path::{HgPathBuf, HgPathError}; pub use filepatterns::{ parse_pattern_syntax, read_pattern_file, IgnorePattern,