Re-export basic text types from text and language crates
Also avoid production dependencies on fs and rope in collab
This commit is contained in:
parent
fedec68d39
commit
6cdf4e98fc
43 changed files with 51 additions and 102 deletions
|
@ -1,10 +1,8 @@
|
|||
use crate::{BufferSnapshot, Point, PointUtf16, TextDimension, ToOffset, ToPoint, ToPointUtf16};
|
||||
use anyhow::Result;
|
||||
use rope::{point::Point, point_utf16::PointUtf16, TextDimension};
|
||||
use std::{cmp::Ordering, fmt::Debug, ops::Range};
|
||||
use sum_tree::Bias;
|
||||
|
||||
use crate::{BufferSnapshot, ToOffset, ToPoint, ToPointUtf16};
|
||||
|
||||
#[derive(Copy, Clone, Eq, PartialEq, Debug, Hash, Default)]
|
||||
pub struct Anchor {
|
||||
pub timestamp: clock::Local,
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
use rope::TextDimension;
|
||||
|
||||
use crate::{Anchor, BufferSnapshot};
|
||||
|
||||
use crate::{Anchor, BufferSnapshot, TextDimension};
|
||||
use std::cmp::Ordering;
|
||||
use std::ops::Range;
|
||||
|
||||
|
|
|
@ -19,9 +19,10 @@ use locator::Locator;
|
|||
use operation_queue::OperationQueue;
|
||||
pub use patch::Patch;
|
||||
use postage::{barrier, oneshot, prelude::*};
|
||||
use rope::{offset_utf16::OffsetUtf16, point::Point, point_utf16::PointUtf16, TextDimension};
|
||||
pub use rope::{Chunks, Rope, TextSummary};
|
||||
|
||||
pub use rope::*;
|
||||
pub use selection::*;
|
||||
|
||||
use std::{
|
||||
cmp::{self, Ordering, Reverse},
|
||||
future::Future,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue