1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#![allow(
clippy::boxed_local,
clippy::cast_lossless,
clippy::collapsible_if,
clippy::let_and_return,
clippy::map_entry,
clippy::match_as_ref,
clippy::match_bool,
clippy::needless_pass_by_value,
clippy::new_without_default,
clippy::or_fun_call,
clippy::ptr_arg,
clippy::too_many_arguments,
clippy::unreadable_literal,
clippy::get_unwrap
)]
#[macro_use]
extern crate log;
extern crate regex;
extern crate serde;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
extern crate memchr;
#[cfg(feature = "notify")]
extern crate notify;
extern crate syntect;
extern crate time;
extern crate toml;
extern crate xi_rope;
extern crate xi_rpc;
extern crate xi_trace;
extern crate xi_unicode;
#[cfg(feature = "ledger")]
mod ledger_includes {
extern crate fuchsia_zircon;
extern crate fuchsia_zircon_sys;
extern crate mxruntime;
#[macro_use]
extern crate fidl;
extern crate apps_ledger_services_public;
extern crate sha2;
}
#[cfg(feature = "ledger")]
use ledger_includes::*;
pub mod annotations;
pub mod backspace;
pub mod client;
pub mod config;
pub mod core;
pub mod edit_types;
pub mod editor;
pub mod event_context;
pub mod file;
pub mod find;
#[cfg(feature = "ledger")]
pub mod fuchsia;
pub mod index_set;
pub mod layers;
pub mod line_cache_shadow;
pub mod line_ending;
pub mod linewrap;
pub mod movement;
pub mod plugins;
pub mod recorder;
pub mod selection;
pub mod styles;
pub mod syntax;
pub mod tabs;
pub mod view;
#[cfg(feature = "notify")]
pub mod watcher;
pub mod whitespace;
pub mod width_cache;
pub mod word_boundaries;
pub mod rpc;
#[cfg(feature = "ledger")]
use apps_ledger_services_public::Ledger_Proxy;
pub use crate::config::{BufferItems as BufferConfig, Table as ConfigTable};
pub use crate::core::{WeakXiCore, XiCore};
pub use crate::editor::EditType;
pub use crate::plugins::manifest as plugin_manifest;
pub use crate::plugins::rpc as plugin_rpc;
pub use crate::plugins::PluginPid;
pub use crate::syntax::{LanguageDefinition, LanguageId};
pub use crate::tabs::test_helpers;
pub use crate::tabs::{BufferId, BufferIdentifier, ViewId};