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 bisect;
35pub mod commit;
36pub mod commit_builder;
37pub mod config;
38mod config_resolver;
39pub mod conflict_labels;
40pub mod conflicts;
41pub mod converge;
42pub mod copies;
43pub mod dag_walk;
44pub mod dag_walk_async;
45pub mod default_backend_factories;
46pub mod default_index;
47pub mod default_submodule_store;
48pub mod diff;
49pub mod diff_presentation;
50pub mod dsl_util;
51pub(crate) mod eol;
52pub mod evolution;
53pub mod extensions_map;
54pub mod file_util;
55pub mod files;
56pub mod fileset;
57mod fileset_parser;
58pub mod fix;
59pub mod fmt_util;
60pub mod fsmonitor;
61#[cfg(feature = "git")]
62pub mod git;
63#[cfg(feature = "git")]
64pub mod git_backend;
65#[cfg(feature = "git")]
66mod git_subprocess;
67pub mod gitignore;
68pub mod gpg_signing;
69pub mod graph;
70pub mod graph_dominators;
71pub mod hex_util;
72pub mod id_prefix;
73pub mod index;
74pub mod iter_util;
75pub mod local_working_copy;
76pub mod lock;
77pub mod matchers;
78pub mod merge;
79pub mod merged_tree;
80pub mod merged_tree_builder;
81pub mod object_id;
82pub mod op_heads_store;
83pub mod op_store;
84pub mod op_walk;
85pub mod operation;
86#[expect(missing_docs)]
87pub mod protos;
88pub mod ref_name;
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 secure_config;
98pub mod settings;
99pub mod signing;
100pub mod tree_merge;
101pub mod simple_backend;
105pub mod simple_op_heads_store;
106pub mod simple_op_store;
107pub mod ssh_signing;
108pub mod stacked_table;
109pub mod store;
110pub mod str_util;
111pub mod submodule_store;
112#[cfg(feature = "testing")]
113pub mod test_signing_backend;
114pub mod time_util;
115pub mod trailer;
116pub mod transaction;
117pub mod tree;
118pub mod tree_builder;
119pub mod union_find;
120pub mod view;
121pub mod working_copy;
122pub mod workspace;
123pub mod workspace_store;
124
125#[cfg(test)]
126mod tests {
127 use tempfile::TempDir;
128
129 pub type TestResult<T = ()> = eyre::Result<T>;
131
132 pub fn new_temp_dir() -> TempDir {
135 tempfile::Builder::new()
136 .prefix("jj-test-")
137 .tempdir()
138 .unwrap()
139 }
140}