summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml19
-rw-r--r--Cargo.toml13
-rw-r--r--cli/Cargo.toml13
-rw-r--r--docs/Cargo.toml7
-rw-r--r--library/Cargo.toml15
-rw-r--r--macros/Cargo.toml15
-rw-r--r--tests/Cargo.toml7
7 files changed, 63 insertions, 26 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a0158ad8..55995ef1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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
diff --git a/Cargo.toml b/Cargo.toml
index 1c404061..f604a442 100644
--- a/Cargo.toml
+++ b/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
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index a2f6735f..73cbe3f6 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -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"]
diff --git a/docs/Cargo.toml b/docs/Cargo.toml
index e707617c..a87ca340 100644
--- a/docs/Cargo.toml
+++ b/docs/Cargo.toml
@@ -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]
diff --git a/library/Cargo.toml b/library/Cargo.toml
index 499170cb..c21df83c 100644
--- a/library/Cargo.toml
+++ b/library/Cargo.toml
@@ -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
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index 59151850..895d8321 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -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
diff --git a/tests/Cargo.toml b/tests/Cargo.toml
index 0b704ec2..c544f7cf 100644
--- a/tests/Cargo.toml
+++ b/tests/Cargo.toml
@@ -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]