feat: bump edition of most crates to rust 2024 (#2042)
Some checks are pending
tinymist::auto_tag / auto-tag (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run

This commit is contained in:
Myriad-Dreamin 2025-08-18 16:48:41 +08:00 committed by GitHub
parent d227ad2a53
commit 05280aec4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
128 changed files with 340 additions and 331 deletions

View file

@ -13,7 +13,7 @@ use tinymist_world::{CompilerFeat, CompilerWorld};
use typst::diag::FileResult;
use typst::foundations::func;
use typst::syntax::ast::AstNode;
use typst::syntax::{ast, Source, Span, SyntaxNode};
use typst::syntax::{Source, Span, SyntaxNode, ast};
use typst::{World, WorldExt};
use crate::instrument::Instrumenter;

View file

@ -8,11 +8,11 @@ use comemo::Tracked;
use parking_lot::RwLock;
use tinymist_std::hash::{FxHashMap, FxHashSet};
use tinymist_world::vfs::FileId;
use typst::World;
use typst::diag::FileResult;
use typst::engine::Engine;
use typst::foundations::{func, Binding, Context, Dict, Scopes};
use typst::foundations::{Binding, Context, Dict, Scopes, func};
use typst::syntax::{Source, Span};
use typst::World;
use crate::instrument::Instrumenter;

View file

@ -1,6 +1,6 @@
use typst::diag::FileError;
use typst::syntax::ast::{self, AstNode};
use typst::syntax::SyntaxNode;
use typst::syntax::ast::{self, AstNode};
use super::*;

View file

@ -4,15 +4,15 @@ use std::sync::Arc;
use parking_lot::Mutex;
use tinymist_std::hash::FxHashMap;
use tinymist_world::vfs::PathResolution;
use tinymist_world::SourceWorld;
use tinymist_world::{vfs::FileId, CompilerFeat, CompilerWorld};
use tinymist_world::vfs::PathResolution;
use tinymist_world::{CompilerFeat, CompilerWorld, vfs::FileId};
use typst::Library;
use typst::diag::FileResult;
use typst::foundations::{Bytes, Datetime};
use typst::syntax::Source;
use typst::text::{Font, FontBook};
use typst::utils::LazyHash;
use typst::Library;
pub trait Instrumenter: Send + Sync {
fn instrument(&self, source: Source) -> FileResult<Source>;

View file

@ -2,7 +2,7 @@
pub use cov::CoverageResult;
pub use debugger::{
set_debug_session, with_debug_session, BreakpointKind, DebugSession, DebugSessionHandler,
BreakpointKind, DebugSession, DebugSessionHandler, set_debug_session, with_debug_session,
};
mod cov;
@ -16,11 +16,11 @@ use debugger::BreakpointInstr;
use parking_lot::Mutex;
use tinymist_std::{error::prelude::*, hash::FxHashMap};
use tinymist_world::package::PackageSpec;
use tinymist_world::{print_diagnostics, CompilerFeat, CompilerWorld};
use tinymist_world::{CompilerFeat, CompilerWorld, print_diagnostics};
use typst::Library;
use typst::diag::EcoString;
use typst::syntax::package::PackageVersion;
use typst::utils::LazyHash;
use typst::Library;
use cov::*;
use instrument::InstrumentWorld;