mirror of
https://github.com/typst/typst
synced 2025-08-19 17:38:32 +08:00
Bump Rust to 1.89 in CI (#6775)
Co-authored-by: Drodt <daniel.drodt@tu-darmstadt.de> Co-authored-by: Daniel Drodt <132357467+Drodt@users.noreply.github.com>
This commit is contained in:
parent
f985d15a94
commit
f6c6c68902
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -40,7 +40,7 @@ jobs:
|
|||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y gcc-multilib libssl-dev:i386 pkg-config:i386
|
sudo apt install -y gcc-multilib libssl-dev:i386 pkg-config:i386
|
||||||
- uses: dtolnay/rust-toolchain@1.88.0
|
- uses: dtolnay/rust-toolchain@1.89.0
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.bits == 32 && 'i686-unknown-linux-gnu' || '' }}
|
targets: ${{ matrix.bits == 32 && 'i686-unknown-linux-gnu' || '' }}
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
@ -73,7 +73,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@1.88.0
|
- uses: dtolnay/rust-toolchain@1.89.0
|
||||||
with:
|
with:
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
- uses: Swatinem/rust-cache@v2
|
- uses: Swatinem/rust-cache@v2
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -44,7 +44,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@1.88.0
|
- uses: dtolnay/rust-toolchain@1.89.0
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
// Can be re-enabled once `Option::map_or_default` is stable in our MSRV.
|
||||||
|
#![allow(unstable_name_collisions)]
|
||||||
|
|
||||||
|
// Is unused in compiler versions where `Option::map_or_default` is stable.
|
||||||
|
#[allow(unused_imports)]
|
||||||
|
use typst_utils::OptionExt;
|
||||||
|
|
||||||
use typst_library::diag::SourceResult;
|
use typst_library::diag::SourceResult;
|
||||||
use typst_library::foundations::{Packed, StyleChain, SymbolElem};
|
use typst_library::foundations::{Packed, StyleChain, SymbolElem};
|
||||||
use typst_library::layout::{Abs, Axis, Corner, Frame, Point, Rel, Size};
|
use typst_library::layout::{Abs, Axis, Corner, Frame, Point, Rel, Size};
|
||||||
@ -5,7 +12,6 @@ use typst_library::math::{
|
|||||||
AttachElem, EquationElem, LimitsElem, PrimesElem, ScriptsElem, StretchElem,
|
AttachElem, EquationElem, LimitsElem, PrimesElem, ScriptsElem, StretchElem,
|
||||||
};
|
};
|
||||||
use typst_library::text::Font;
|
use typst_library::text::Font;
|
||||||
use typst_utils::OptionExt;
|
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
FrameFragment, Limits, MathContext, MathFragment, stretch_fragment,
|
FrameFragment, Limits, MathContext, MathFragment, stretch_fragment,
|
||||||
|
@ -70,7 +70,7 @@ impl PdfImage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the PDF page of the image.
|
/// Returns the PDF page of the image.
|
||||||
pub fn page(&self) -> &Page {
|
pub fn page(&self) -> &Page<'_> {
|
||||||
&self.document().pdf().pages()[self.0.page_index]
|
&self.document().pdf().pages()[self.0.page_index]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
flake.lock
generated
6
flake.lock
generated
@ -112,13 +112,13 @@
|
|||||||
"rust-manifest": {
|
"rust-manifest": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-YZfjbpqCYQFG1qLl2zMyFq2nFwmB2aFo5DSOCaBtGLY=",
|
"narHash": "sha256-nzhgCEnR/ggzYuS1CGIrvJyTElA5hPY12NGkSgIfl6A=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.88.0.toml"
|
"url": "https://static.rust-lang.org/dist/channel-rust-1.89.0.toml"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.88.0.toml"
|
"url": "https://static.rust-lang.org/dist/channel-rust-1.89.0.toml"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
rust-manifest = {
|
rust-manifest = {
|
||||||
url = "https://static.rust-lang.org/dist/channel-rust-1.88.0.toml";
|
url = "https://static.rust-lang.org/dist/channel-rust-1.89.0.toml";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user