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:
|
||||
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
|
||||
|
13
Cargo.toml
13
Cargo.toml
@ -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
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user