project_note
Clone
https://git.tahinli.com/Tahinli/project_note.git
0 watching0 forksRust3.6 MiBc49f5e7Tahinli1 month ago2 commits
| 1 | //! loro-internal is a CRDT framework. |
| 2 | //! |
| 3 | //! |
| 4 | //! |
| 5 | //! |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | pub use container_tree; |
| 18 | |
| 19 | use crate; |
| 20 | use Arc; |
| 21 | |
| 22 | pub |
| 23 | use SharedArena; |
| 24 | use Configure; |
| 25 | use DiffCalculator; |
| 26 | use LoroMutex; |
| 27 | |
| 28 | pub use ChangeMeta; |
| 29 | pub use ; |
| 30 | pub use |
| 31 | |
| 32 | |
| 33 | ; |
| 34 | pub use loro_common; |
| 35 | pub use OpLog; |
| 36 | use |
| 37 | |
| 38 | |
| 39 | ; |
| 40 | pub use FxHashMap; |
| 41 | pub use DocState; |
| 42 | pub use ; |
| 43 | use ; |
| 44 | use Transaction; |
| 45 | pub use UndoManager; |
| 46 | pub use SubscriberSetWithQueue; |
| 47 | pub use Subscription; |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | pub |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | pub use StringSlice; |
| 78 | |
| 79 | |
| 80 | pub use loro_delta; |
| 81 | |
| 82 | |
| 83 | |
| 84 | pub |
| 85 | pub |
| 86 | pub |
| 87 | |
| 88 | pub |
| 89 | |
| 90 | // TODO: rename as Key? |
| 91 | pub use InternalString; |
| 92 | |
| 93 | pub use ContainerType; |
| 94 | pub use json; |
| 95 | pub use FractionalIndex; |
| 96 | pub use ; |
| 97 | pub use |
| 98 | |
| 99 | |
| 100 | ; |
| 101 | pub use ; |
| 102 | |
| 103 | pub use wasm; |
| 104 | pub use ; |
| 105 | pub use VersionVector; |
| 106 | |
| 107 | /// [`LoroDoc`] serves as the library's primary entry point. |
| 108 | /// It's constituted by an [OpLog] and an [DocState]. |
| 109 | /// |
| 110 | /// - [OpLog] encompasses all operations, signifying the document history. |
| 111 | /// - [DocState] signifies the current document state. |
| 112 | /// |
| 113 | /// They will share a [super::arena::SharedArena] |
| 114 | /// |
| 115 | /// # Detached Mode |
| 116 | /// |
| 117 | /// This mode enables separate usage of [OpLog] and [DocState]. |
| 118 | /// It facilitates temporal navigation. [DocState] can be reverted to |
| 119 | /// any version contained within the [OpLog]. |
| 120 | /// |
| 121 | /// `LoroDoc::detach()` separates [DocState] from [OpLog]. In this mode, |
| 122 | /// updates to [OpLog] won't affect [DocState], while updates to [DocState] |
| 123 | /// will continue to affect [OpLog]. |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | /// The version of the loro crate |
| 177 | pub const LORO_VERSION: &str = include_str!; |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 | |
| 185 |