mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Add rust minimum version in Cargo.toml
(#902)
This commit is contained in:
parent
ad347632ab
commit
856557353b
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -3,9 +3,11 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
RUSTFLAGS: "-Dwarnings"
|
||||||
|
rust_min: 1.65.0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ci:
|
ci:
|
||||||
|
name: Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -15,3 +17,20 @@ jobs:
|
|||||||
- run: cargo clippy --workspace --all-targets
|
- run: cargo clippy --workspace --all-targets
|
||||||
- run: cargo build --workspace
|
- run: cargo build --workspace
|
||||||
- run: cargo test --workspace --no-fail-fast
|
- run: cargo test --workspace --no-fail-fast
|
||||||
|
msrv:
|
||||||
|
name: MSRV
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout sources
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install toolchain (${{ env.rust_min }})
|
||||||
|
run: |
|
||||||
|
rustup install --profile minimal ${{ env.rust_min }}
|
||||||
|
rustup override set ${{ env.rust_min }}
|
||||||
|
|
||||||
|
- name: Cache
|
||||||
|
uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cargo build --workspace
|
||||||
|
13
Cargo.toml
13
Cargo.toml
@ -1,6 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst"
|
name = "typst"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
|
rust-version = "1.65"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A new markup-based typesetting system that is powerful and easy to learn."
|
description = "A new markup-based typesetting system that is powerful and easy to learn."
|
||||||
@ -15,6 +16,18 @@ keywords = ["markup", "typesetting"]
|
|||||||
members = ["cli", "docs", "library", "macros", "tests"]
|
members = ["cli", "docs", "library", "macros", "tests"]
|
||||||
default-members = ["cli"]
|
default-members = ["cli"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
version = "0.3.0"
|
||||||
|
rust-version = "1.65"
|
||||||
|
authors = ["The Typst Project Developers"]
|
||||||
|
edition = "2021"
|
||||||
|
homepage = "https://typst.app"
|
||||||
|
repository = "https://github.com/typst/typst"
|
||||||
|
readme = "README.md"
|
||||||
|
license = "Apache-2.0"
|
||||||
|
categories = ["compilers", "science"]
|
||||||
|
keywords = ["typst"]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
bench = false
|
bench = false
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-cli"
|
name = "typst-cli"
|
||||||
version = "0.3.0"
|
version.workspace = true
|
||||||
authors = ["The Typst Project Developers"]
|
rust-version.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
description = "The command line interface for Typst."
|
description = "The command line interface for Typst."
|
||||||
homepage = "https://typst.app"
|
homepage.workspace = true
|
||||||
repository = "https://github.com/typst/typst"
|
repository.workspace = true
|
||||||
license = "Apache-2.0"
|
license.workspace = true
|
||||||
categories = ["compilers", "command-line-utilities"]
|
categories = ["compilers", "command-line-utilities"]
|
||||||
keywords = ["typst", "cli"]
|
keywords = ["typst", "cli"]
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-docs"
|
name = "typst-docs"
|
||||||
version = "0.3.0"
|
version.workspace = true
|
||||||
authors = ["The Typst Project Developers"]
|
rust-version.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-library"
|
name = "typst-library"
|
||||||
version = "0.3.0"
|
version.workspace = true
|
||||||
authors = ["The Typst Project Developers"]
|
rust-version.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
description = "The standard library for Typst."
|
description = "The standard library for Typst."
|
||||||
homepage = "https://typst.app"
|
homepage.workspace = true
|
||||||
repository = "https://github.com/typst/typst"
|
repository.workspace = true
|
||||||
license = "Apache-2.0"
|
license.workspace = true
|
||||||
keywords = ["typst"]
|
keywords.workspace = true
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
test = false
|
test = false
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-macros"
|
name = "typst-macros"
|
||||||
version = "0.3.0"
|
version.workspace = true
|
||||||
authors = ["The Typst Project Developers"]
|
rust-version.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
description = "Proc-macros for Typst."
|
description = "Proc-macros for Typst."
|
||||||
homepage = "https://typst.app"
|
homepage.workspace = true
|
||||||
repository = "https://github.com/typst/typst"
|
repository.workspace = true
|
||||||
license = "Apache-2.0"
|
license.workspace = true
|
||||||
keywords = ["typst"]
|
keywords.workspace = true
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-tests"
|
name = "typst-tests"
|
||||||
version = "0.3.0"
|
version.workspace = true
|
||||||
authors = ["The Typst Project Developers"]
|
rust-version.workspace = true
|
||||||
edition = "2021"
|
authors.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user