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:
Myriad-Dreamin 2025-01-21 00:56:30 +08:00 committed by GitHub
parent 8ca6c8118c
commit ac25cc1365
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 823 additions and 761 deletions

View file

@ -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.

View file

@ -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

View file

@ -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"))]