Laurenz
3c6a284387
Fix race condition
...
Because the package directory was created immediately empty (before extraction), other Typst instances would already start using it and complain about missing `typst.toml`. The package directory must not exist until the rename takes place.
To simplify that, this commit moves the location of the temporary dir into the package subfolder so that it's a move to a direct sibling location.
2025-03-11 14:09:15 +01:00
Laurenz
401c591a84
Create Tempdir
struct that cleans up on Drop
...
This way, we auto-clean-up in all code paths, and possibly even on panic. Makes it a bit simpler conceptually.
2025-03-11 14:08:10 +01:00
Laurenz
2464ff3e93
Style nits
2025-03-11 11:51:20 +01:00
Laurenz
82ffc61d59
Switch to fastrand
to reduce dependency count
...
See 35c204d7c2/CHANGELOG.md (L151-L152)
2025-03-11 11:30:23 +01:00
Laurenz
a2928ed301
Make dependency on randomness optional
2025-03-11 11:29:26 +01:00
Andrew Voynov
91def23743
Rename generated name for extracted_package_dir
2025-03-06 04:55:47 +03:00
Andrew Voynov
cd2b2a0262
Place the extraction dir into the package base dir
...
Now the "downloads" constant isn't required.
2025-03-05 19:54:18 +03:00
Andrew Voynov
5dd70d8d2d
Fix incorrect directory being removed
2025-03-05 16:59:40 +03:00
Andrew Voynov
77632cd4bd
Swapped PID randomness for ThreadRng from rand crate
2025-03-05 01:26:12 +03:00
Andrew Voynov
0bb8093e15
docs: write an elaborate explanation
2025-03-02 13:51:15 +03:00
Andrew Voynov
2aaf8a8a9c
Fix parallel package installation
...
Also removes the possibility of a broken package cache state.
2025-03-02 00:30:16 +03:00
Ana Gelez
19a12f379f
Lazy parsing of the package index ( #5851 )
2025-02-12 15:50:48 +00:00
Laurenz
dacd6acd5e
More flexible and efficient Bytes
representation ( #5670 )
2025-01-08 10:57:56 +00:00
Stephen Waits
e550dce62d
More magic "preview" -> DEFAULT_NAMESPACE ( #5478 )
2024-11-27 09:09:44 +00:00
Stephen Waits
22748aaf2e
Replace _magic_ "preview" literals with a constant ( #5452 )
2024-11-26 20:50:30 +00:00
Laurenz
be7cfc85d0
Split out four new crates ( #5302 )
2024-10-27 18:04:55 +00:00
Laurenz
ae7787c820
Better return type for download_index
( #5086 )
2024-10-01 13:35:02 +00:00
Laurenz
7ff83db757
Change default font to Libertinus Serif ( #4969 )
2024-09-30 15:19:22 +00:00
Josh Soref
ca1f749c08
Spelling ( #5020 )
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Andrew Voynov
0facb75e6d
Fixed typo in docs for ProgressSink
( #4785 )
2024-08-20 15:12:22 +00:00
Florent Michel
70931ac1f6
Fix crash when local package is missing and make OpenSSL optional in typst-kit ( #4720 )
2024-08-11 20:16:40 +00:00
tingerrr
672f6e5f97
Add typst-kit crate ( #4540 )
2024-08-05 18:49:02 +00:00