mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-23 12:46:43 +00:00
refactor: rearrangement and document about tinymist-project (#1204)
* refactor: rearrangement and document about tinymist-project * refactor: more rearrangement and document about tinymist-project
This commit is contained in:
parent
8ca6c8118c
commit
ac25cc1365
23 changed files with 823 additions and 761 deletions
|
|
@ -1,10 +1,8 @@
|
|||
use std::borrow::{Borrow, Cow};
|
||||
|
||||
use serde::{Deserializer, Serializer};
|
||||
use serde_with::{
|
||||
base64::{Base64, Standard},
|
||||
formats::Padded,
|
||||
};
|
||||
use serde_with::base64::{Base64, Standard};
|
||||
use serde_with::formats::Padded;
|
||||
use serde_with::{DeserializeAs, SerializeAs};
|
||||
|
||||
/// A marker type for serializing and deserializing `Cow<[u8]>` as base64.
|
||||
|
|
|
|||
|
|
@ -13,11 +13,12 @@ use std::io;
|
|||
use std::io::{Read, Seek, SeekFrom, Write};
|
||||
use std::path::{Display, Path, PathBuf};
|
||||
|
||||
use self::sys::*;
|
||||
use super::paths;
|
||||
use anyhow::Context as _;
|
||||
use anyhow::Result;
|
||||
|
||||
use self::sys::*;
|
||||
use super::paths;
|
||||
|
||||
/// A locked file.
|
||||
///
|
||||
/// This provides access to file while holding a lock on the file. This type
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
//! Cross platform time utilities.
|
||||
|
||||
pub use std::time::SystemTime as Time;
|
||||
pub use web_time::Duration;
|
||||
pub use web_time::Instant;
|
||||
pub use web_time::{Duration, Instant};
|
||||
|
||||
/// Returns the current system time (UTC+0).
|
||||
#[cfg(any(feature = "system", feature = "web"))]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue