1#![warn(missing_docs)]
18#![deny(unused_must_use)]
19#![forbid(unsafe_code)]
20
21extern crate self as jj_lib;
27
28#[macro_use]
29pub mod content_hash;
30
31pub mod absorb;
32pub mod annotate;
33pub mod backend;
34pub mod commit;
35pub mod commit_builder;
36pub mod config;
37mod config_resolver;
38pub mod conflicts;
39pub mod copies;
40pub mod dag_walk;
41pub mod default_index;
42pub mod default_submodule_store;
43pub mod diff;
44pub mod dsl_util;
45pub mod extensions_map;
46pub mod file_util;
47pub mod files;
48pub mod fileset;
49mod fileset_parser;
50pub mod fmt_util;
51pub mod fsmonitor;
52#[cfg(feature = "git")]
53pub mod git;
54#[cfg(not(feature = "git"))]
55pub mod git {
58 pub fn is_special_git_remote(_remote: &str) -> bool {
63 false
64 }
65}
66#[cfg(feature = "git")]
67pub mod git_backend;
68#[cfg(feature = "git")]
69mod git_subprocess;
70pub mod gitignore;
71pub mod gpg_signing;
72pub mod graph;
73pub mod hex_util;
74pub mod id_prefix;
75pub mod index;
76pub mod local_backend;
77pub mod local_working_copy;
78pub mod lock;
79pub mod matchers;
80pub mod merge;
81pub mod merged_tree;
82pub mod object_id;
83pub mod op_heads_store;
84pub mod op_store;
85pub mod op_walk;
86pub mod operation;
87#[allow(missing_docs)]
88pub mod protos;
89pub mod refs;
90pub mod repo;
91pub mod repo_path;
92pub mod revset;
93mod revset_parser;
94pub mod rewrite;
95#[cfg(feature = "testing")]
96pub mod secret_backend;
97pub mod settings;
98pub mod signing;
99pub mod simple_op_heads_store;
100pub mod simple_op_store;
101pub mod ssh_signing;
102pub mod stacked_table;
103pub mod store;
104pub mod str_util;
105pub mod submodule_store;
106#[cfg(feature = "testing")]
107pub mod test_signing_backend;
108pub mod time_util;
109pub mod transaction;
110pub mod tree;
111pub mod tree_builder;
112pub mod union_find;
113pub mod view;
114pub mod working_copy;
115pub mod workspace;
116
117#[cfg(test)]
118mod tests {
119 use tempfile::TempDir;
120
121 pub fn new_temp_dir() -> TempDir {
124 tempfile::Builder::new()
125 .prefix("jj-test-")
126 .tempdir()
127 .unwrap()
128 }
129}