mirror of
https://github.com/typst/typst
synced 2025-06-07 20:56:24 +08:00
Bump Rust to 1.87 in CI (#6367)
This commit is contained in:
parent
6164ade9ce
commit
e023db5f1d
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.85.0
|
- uses: dtolnay/rust-toolchain@1.87.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.85.0
|
- uses: dtolnay/rust-toolchain@1.87.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.85.0
|
- uses: dtolnay/rust-toolchain@1.87.0
|
||||||
with:
|
with:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
|
|
||||||
|
@ -128,8 +128,7 @@ impl Downloader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Configure native TLS.
|
// Configure native TLS.
|
||||||
let connector =
|
let connector = tls.build().map_err(io::Error::other)?;
|
||||||
tls.build().map_err(|err| io::Error::new(io::ErrorKind::Other, err))?;
|
|
||||||
builder = builder.tls_connector(Arc::new(connector));
|
builder = builder.tls_connector(Arc::new(connector));
|
||||||
|
|
||||||
builder.build().get(url).call()
|
builder.build().get(url).call()
|
||||||
|
@ -373,6 +373,7 @@ pub struct Decoration {
|
|||||||
|
|
||||||
/// A kind of decorative line.
|
/// A kind of decorative line.
|
||||||
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
|
#[derive(Debug, Clone, Eq, PartialEq, Hash)]
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
pub enum DecoLine {
|
pub enum DecoLine {
|
||||||
Underline {
|
Underline {
|
||||||
stroke: Stroke<Abs>,
|
stroke: Stroke<Abs>,
|
||||||
|
@ -185,6 +185,7 @@ struct Cast {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A pattern in a cast, e.g.`"ascender"` or `v: i64`.
|
/// A pattern in a cast, e.g.`"ascender"` or `v: i64`.
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
enum Pattern {
|
enum Pattern {
|
||||||
Str(syn::LitStr),
|
Str(syn::LitStr),
|
||||||
Ty(syn::Pat, syn::Type),
|
Ty(syn::Pat, syn::Type),
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
//! [module]: crate::foundations::Module
|
//! [module]: crate::foundations::Module
|
||||||
//! [content]: crate::foundations::Content
|
//! [content]: crate::foundations::Content
|
||||||
//! [laid out]: typst_layout::layout_document
|
//! [laid out]: typst_layout::layout_document
|
||||||
//! [document]: crate::model::Document
|
|
||||||
//! [frame]: crate::layout::Frame
|
//! [frame]: crate::layout::Frame
|
||||||
|
|
||||||
pub extern crate comemo;
|
pub extern crate comemo;
|
||||||
|
6
flake.lock
generated
6
flake.lock
generated
@ -112,13 +112,13 @@
|
|||||||
"rust-manifest": {
|
"rust-manifest": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"narHash": "sha256-irgHsBXecwlFSdmP9MfGP06Cbpca2QALJdbN4cymcko=",
|
"narHash": "sha256-BwfxWd/E8gpnXoKsucFXhMbevMlVgw3l0becLkIcWCU=",
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.85.0.toml"
|
"url": "https://static.rust-lang.org/dist/channel-rust-1.87.0.toml"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "file",
|
"type": "file",
|
||||||
"url": "https://static.rust-lang.org/dist/channel-rust-1.85.0.toml"
|
"url": "https://static.rust-lang.org/dist/channel-rust-1.87.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.85.0.toml";
|
url = "https://static.rust-lang.org/dist/channel-rust-1.87.0.toml";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user