Add rust minimum version in Cargo.toml (#902)

This commit is contained in:
HarmoGlace 2023-05-03 10:37:44 +02:00 committed by GitHub
parent ad347632ab
commit 856557353b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 63 additions and 26 deletions

View file

@ -3,9 +3,11 @@ on: [push, pull_request]
env:
RUSTFLAGS: "-Dwarnings"
rust_min: 1.65.0
jobs:
ci:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -15,3 +17,20 @@ jobs:
- run: cargo clippy --workspace --all-targets
- run: cargo build --workspace
- 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

View file

@ -1,6 +1,7 @@
[package]
name = "typst"
version = "0.3.0"
rust-version = "1.65"
authors = ["The Typst Project Developers"]
edition = "2021"
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"]
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]
doctest = false
bench = false

View file

@ -1,12 +1,13 @@
[package]
name = "typst-cli"
version = "0.3.0"
authors = ["The Typst Project Developers"]
edition = "2021"
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
description = "The command line interface for Typst."
homepage = "https://typst.app"
repository = "https://github.com/typst/typst"
license = "Apache-2.0"
homepage.workspace = true
repository.workspace = true
license.workspace = true
categories = ["compilers", "command-line-utilities"]
keywords = ["typst", "cli"]

View file

@ -1,8 +1,9 @@
[package]
name = "typst-docs"
version = "0.3.0"
authors = ["The Typst Project Developers"]
edition = "2021"
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
publish = false
[lib]

View file

@ -1,13 +1,14 @@
[package]
name = "typst-library"
version = "0.3.0"
authors = ["The Typst Project Developers"]
edition = "2021"
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
description = "The standard library for Typst."
homepage = "https://typst.app"
repository = "https://github.com/typst/typst"
license = "Apache-2.0"
keywords = ["typst"]
homepage.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
[lib]
test = false

View file

@ -1,13 +1,14 @@
[package]
name = "typst-macros"
version = "0.3.0"
authors = ["The Typst Project Developers"]
edition = "2021"
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
description = "Proc-macros for Typst."
homepage = "https://typst.app"
repository = "https://github.com/typst/typst"
license = "Apache-2.0"
keywords = ["typst"]
homepage.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
[lib]
proc-macro = true

View file

@ -1,8 +1,9 @@
[package]
name = "typst-tests"
version = "0.3.0"
authors = ["The Typst Project Developers"]
edition = "2021"
version.workspace = true
rust-version.workspace = true
authors.workspace = true
edition.workspace = true
publish = false
[dev-dependencies]