Add wasm32_web_time feature (#73)

This commit is contained in:
Armin Ronacher 2025-01-19 01:11:09 +01:00 committed by GitHub
parent 717757e156
commit 177ce9e700
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 30 additions and 14 deletions

View file

@ -4,10 +4,10 @@
//! * space `O(MN)`
use std::collections::BTreeMap;
use std::ops::{Index, Range};
use std::time::Instant;
use crate::algorithms::utils::{common_prefix_len, common_suffix_len, is_empty_range};
use crate::algorithms::DiffHook;
use crate::Instant;
/// LCS diff algorithm.
///

View file

@ -41,8 +41,8 @@ pub(crate) mod utils;
use std::hash::Hash;
use std::ops::{Index, Range};
use std::time::Instant;
use crate::Instant;
pub use capture::Capture;
pub use compact::Compact;
pub use hook::{DiffHook, NoFinishHook};

View file

@ -20,10 +20,10 @@
//! For potential improvements here see [similar#15](https://github.com/mitsuhiko/similar/issues/15).
use std::ops::{Index, IndexMut, Range};
use std::time::Instant;
use crate::algorithms::utils::{common_prefix_len, common_suffix_len, is_empty_range};
use crate::algorithms::DiffHook;
use crate::Instant;
/// Myers' diff algorithm.
///

View file

@ -10,9 +10,9 @@
//! by Pierre-Étienne Meunier.
use std::hash::Hash;
use std::ops::{Index, Range};
use std::time::Instant;
use crate::algorithms::{myers, DiffHook, NoFinishHook, Replace};
use crate::Instant;
use super::utils::{unique, UniqueItem};