mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-24 05:06:41 +00:00
build: bump world crates to 0.13.24-rc1 (#2047)
This commit is contained in:
parent
cfe6d95261
commit
b7845cb785
15 changed files with 43 additions and 47 deletions
|
|
@ -4,7 +4,7 @@ description = "Project model of typst for tinymist."
|
|||
categories = ["compilers"]
|
||||
keywords = ["language", "typst"]
|
||||
# group: world
|
||||
version = "0.13.16"
|
||||
version = "0.13.24-rc1"
|
||||
authors.workspace = true
|
||||
license.workspace = true
|
||||
edition.workspace = true
|
||||
|
|
@ -43,7 +43,7 @@ no-content-hint = ["tinymist-task/no-content-hint"]
|
|||
lsp = ["toml"]
|
||||
# "system",
|
||||
|
||||
system = ["tinymist-std/system", "tinymist-world/system"]
|
||||
system = ["tinymist-std/system", "tinymist-world/system", "toml"]
|
||||
web = ["tinymist-std/web", "tinymist-world/web"]
|
||||
|
||||
[lints]
|
||||
|
|
|
|||
|
|
@ -785,10 +785,10 @@ impl<F: CompilerFeat, Ext: 'static> ProjectInsState<F, Ext> {
|
|||
/// Compile the document once if there is any reason and the entry is
|
||||
/// active. (this is used for experimenting typst.node compilations)
|
||||
#[must_use]
|
||||
pub fn may_compile2(
|
||||
pub fn may_compile2<'a>(
|
||||
&mut self,
|
||||
compute: impl FnOnce(&Arc<WorldComputeGraph<F>>),
|
||||
) -> Option<impl FnOnce() -> Arc<WorldComputeGraph<F>>> {
|
||||
compute: impl FnOnce(&Arc<WorldComputeGraph<F>>) + 'a,
|
||||
) -> Option<impl FnOnce() -> Arc<WorldComputeGraph<F>> + 'a> {
|
||||
if !self.reason.any() || self.verse.entry_state().is_inactive() {
|
||||
return None;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,10 +3,9 @@
|
|||
mod args;
|
||||
mod compiler;
|
||||
mod entry;
|
||||
mod lock;
|
||||
mod model;
|
||||
|
||||
#[cfg(feature = "lsp")]
|
||||
mod lock;
|
||||
#[cfg(feature = "lsp")]
|
||||
mod lsp;
|
||||
#[cfg(feature = "system")]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use typst::World;
|
|||
use typst::diag::EcoString;
|
||||
|
||||
use crate::model::{ApplyProjectTask, Id, ProjectInput, ProjectRoute, ResourcePath};
|
||||
use crate::{LOCK_FILENAME, LOCK_VERSION, LockFile, LockFileCompat, LspWorld, ProjectPathMaterial};
|
||||
use crate::{LOCK_FILENAME, LOCK_VERSION, LockFile, LockFileCompat, ProjectPathMaterial};
|
||||
|
||||
impl LockFile {
|
||||
/// Gets the input by the id.
|
||||
|
|
@ -261,7 +261,8 @@ pub struct LockFileUpdate {
|
|||
|
||||
impl LockFileUpdate {
|
||||
/// Compiles the lock file.
|
||||
pub fn compiled(&mut self, world: &LspWorld, ctx: CtxPath) -> Option<Id> {
|
||||
#[cfg(feature = "lsp")]
|
||||
pub fn compiled(&mut self, world: &crate::LspWorld, ctx: CtxPath) -> Option<Id> {
|
||||
let id = Id::from_world(world, ctx)?;
|
||||
|
||||
let root = ResourcePath::from_user_sys(Path::new("."), ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue