Skip to content

Commit

Permalink
Merge pull request #104 from eyre-rs/monorepo
Browse files Browse the repository at this point in the history
Create foundation for monorepo
  • Loading branch information
pksunkara authored Sep 20, 2023
2 parents 9f4ecc4 + be31cf5 commit 044e2ae
Showing 2 changed files with 39 additions and 13 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
on:
push:
branches:
- master
- master
pull_request: {}

name: Continuous integration

env:
MIRIFLAGS: -Zmiri-strict-provenance

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'push' && github.run_number }}
cancel-in-progress: true

jobs:
check:
name: Check
@@ -26,6 +30,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: check
args: --all

test-matrix:
name: Test Suite
@@ -52,7 +57,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }}
args: --all ${{ matrix.features }}

test-msrv:
name: Test Suite
@@ -74,6 +79,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --all ${{ matrix.features }}

test-os:
name: Test Suite
@@ -91,6 +97,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --all

fmt:
name: Rustfmt
@@ -109,7 +116,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
args: --check

clippy:
name: Clippy
@@ -128,7 +135,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
args: --all-targets --all-features -- -D warnings
miri:
name: Miri
runs-on: ubuntu-latest
37 changes: 28 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
[workspace]
members = [
"."
]

[workspace.package]
authors = ["Jane Lusby <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
repository = "https://github.com/eyre-rs/eyre"
readme = "README.md"
rust-version = "1.65.0"

[workspace.dependencies]
indenter = "0.3.0"
once_cell = "1.18.0"

[package]
name = "eyre"
version = "0.6.8"
authors = ["David Tolnay <[email protected]>", "Jane Lusby <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Flexible concrete Error Reporting type built on std::error::Error with customizable Reports"
repository = "https://github.com/yaahc/eyre"
documentation = "https://docs.rs/eyre"
readme = "README.md"
categories = ["rust-patterns"]

edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
readme = { workspace = true }
rust-version = { workspace = true }

[features]
default = ["auto-install", "track-caller"]
auto-install = []
track-caller = []

[dependencies]
indenter = { workspace = true }
once_cell = { workspace = true }
pyo3 = { version = "0.13", optional = true, default-features = false }

[dev-dependencies]
futures = { version = "0.3", default-features = false }
rustversion = "1.0"
@@ -25,11 +49,6 @@ anyhow = "1.0.28"
syn = { version = "2.0", features = ["full"] }
pyo3 = { version = "0.13", default-features = false, features = ["auto-initialize"] }

[dependencies]
indenter = "0.3.0"
once_cell = "1.18.0"
pyo3 = { version = "0.13", optional = true, default-features = false }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = ["--cfg", "doc_cfg"]

0 comments on commit 044e2ae

Please sign in to comment.