mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-10-02 15:26:08 +00:00
Create foundation for monorepo
This commit is contained in:
parent
9f4ecc497e
commit
be31cf59ff
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
|
|
||||||
name: Continuous integration
|
name: Continuous integration
|
||||||
@ -9,6 +9,10 @@ name: Continuous integration
|
|||||||
env:
|
env:
|
||||||
MIRIFLAGS: -Zmiri-strict-provenance
|
MIRIFLAGS: -Zmiri-strict-provenance
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'push' && github.run_number }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Check
|
name: Check
|
||||||
@ -26,6 +30,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: check
|
command: check
|
||||||
|
args: --all
|
||||||
|
|
||||||
test-matrix:
|
test-matrix:
|
||||||
name: Test Suite
|
name: Test Suite
|
||||||
@ -52,7 +57,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: ${{ matrix.features }}
|
args: --all ${{ matrix.features }}
|
||||||
|
|
||||||
test-msrv:
|
test-msrv:
|
||||||
name: Test Suite
|
name: Test Suite
|
||||||
@ -74,6 +79,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
|
args: --all ${{ matrix.features }}
|
||||||
|
|
||||||
test-os:
|
test-os:
|
||||||
name: Test Suite
|
name: Test Suite
|
||||||
@ -91,6 +97,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
|
args: --all
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
@ -109,7 +116,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: fmt
|
command: fmt
|
||||||
args: --all -- --check
|
args: --check
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
@ -128,7 +135,7 @@ jobs:
|
|||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: clippy
|
command: clippy
|
||||||
args: -- -D warnings
|
args: --all-targets --all-features -- -D warnings
|
||||||
miri:
|
miri:
|
||||||
name: Miri
|
name: Miri
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
37
Cargo.toml
37
Cargo.toml
@ -1,20 +1,44 @@
|
|||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"."
|
||||||
|
]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
|
authors = ["Jane Lusby <jlusby@yaah.dev>"]
|
||||||
|
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]
|
[package]
|
||||||
name = "eyre"
|
name = "eyre"
|
||||||
version = "0.6.8"
|
version = "0.6.8"
|
||||||
authors = ["David Tolnay <dtolnay@gmail.com>", "Jane Lusby <jlusby42@gmail.com>"]
|
authors = ["David Tolnay <dtolnay@gmail.com>", "Jane Lusby <jlusby42@gmail.com>"]
|
||||||
edition = "2018"
|
|
||||||
license = "MIT OR Apache-2.0"
|
|
||||||
description = "Flexible concrete Error Reporting type built on std::error::Error with customizable Reports"
|
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"
|
documentation = "https://docs.rs/eyre"
|
||||||
readme = "README.md"
|
|
||||||
categories = ["rust-patterns"]
|
categories = ["rust-patterns"]
|
||||||
|
|
||||||
|
edition = { workspace = true }
|
||||||
|
license = { workspace = true }
|
||||||
|
repository = { workspace = true }
|
||||||
|
readme = { workspace = true }
|
||||||
|
rust-version = { workspace = true }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["auto-install", "track-caller"]
|
default = ["auto-install", "track-caller"]
|
||||||
auto-install = []
|
auto-install = []
|
||||||
track-caller = []
|
track-caller = []
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
indenter = { workspace = true }
|
||||||
|
once_cell = { workspace = true }
|
||||||
|
pyo3 = { version = "0.13", optional = true, default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
futures = { version = "0.3", default-features = false }
|
futures = { version = "0.3", default-features = false }
|
||||||
rustversion = "1.0"
|
rustversion = "1.0"
|
||||||
@ -25,11 +49,6 @@ anyhow = "1.0.28"
|
|||||||
syn = { version = "2.0", features = ["full"] }
|
syn = { version = "2.0", features = ["full"] }
|
||||||
pyo3 = { version = "0.13", default-features = false, features = ["auto-initialize"] }
|
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]
|
[package.metadata.docs.rs]
|
||||||
targets = ["x86_64-unknown-linux-gnu"]
|
targets = ["x86_64-unknown-linux-gnu"]
|
||||||
rustdoc-args = ["--cfg", "doc_cfg"]
|
rustdoc-args = ["--cfg", "doc_cfg"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user