mirror of
https://codeberg.org/JasterV/test-context.git
synced 2026-04-26 18:10:06 +00:00
Merge pull request #34 from JasterV/refactor/cargo-workspace
[Refactor] Cargo workspace
This commit is contained in:
commit
eb28f20c39
6 changed files with 32 additions and 26 deletions
23
Cargo.toml
23
Cargo.toml
|
|
@ -1,25 +1,14 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "test-context"
|
resolver = "2"
|
||||||
version = "0.1.4"
|
members = ["test-context", "test-context-macros"]
|
||||||
|
|
||||||
|
[workspace.package]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A library for providing custom setup/teardown for Rust tests without needing a test harness"
|
version = "0.1.4"
|
||||||
homepage = "https://github.com/JasterV/test-context"
|
homepage = "https://github.com/JasterV/test-context"
|
||||||
repository = "https://github.com/JasterV/test-context"
|
repository = "https://github.com/JasterV/test-context"
|
||||||
readme = "README.md"
|
|
||||||
authors = [
|
authors = [
|
||||||
"Mark Hildreth <mark.k.hildreth@gmail.com>",
|
"Mark Hildreth <mark.k.hildreth@gmail.com>",
|
||||||
"Victor Martinez <victor.martinez@jaster.xyz>",
|
"Victor Martinez <victor.martinez@jaster.xyz>",
|
||||||
]
|
]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
categories = ["development-tools::testing"]
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
test-context-macros = { version = "0.1.4", path = "macros" }
|
|
||||||
async-trait = "0.1.42"
|
|
||||||
futures = "0.3"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
tokio = { version = "1.0", features = ["macros", "rt"] }
|
|
||||||
|
|
||||||
[workspace]
|
|
||||||
members = ["macros"]
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,12 @@
|
||||||
[package]
|
[package]
|
||||||
name = "test-context-macros"
|
name = "test-context-macros"
|
||||||
version = "0.1.4"
|
|
||||||
edition = "2021"
|
|
||||||
description = "Macro crate for test-context"
|
description = "Macro crate for test-context"
|
||||||
homepage = "https://github.com/JasterV/test-context"
|
version.workspace = true
|
||||||
repository = "https://github.com/JasterV/test-context"
|
edition.workspace = true
|
||||||
authors = [
|
homepage.workspace = true
|
||||||
"Mark Hildreth <mark.k.hildreth@gmail.com>",
|
repository.workspace = true
|
||||||
"Victor Martinez <victor.martinez@jaster.xyz>",
|
authors.workspace = true
|
||||||
]
|
license.workspace = true
|
||||||
license = "MIT"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
[lib]
|
[lib]
|
||||||
20
test-context/Cargo.toml
Normal file
20
test-context/Cargo.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
[package]
|
||||||
|
name = "test-context"
|
||||||
|
description = "A library for providing custom setup/teardown for Rust tests without needing a test harness"
|
||||||
|
readme = "../README.md"
|
||||||
|
keywords = ["test", "setup", "teardown"]
|
||||||
|
categories = ["development-tools::testing"]
|
||||||
|
version.workspace = true
|
||||||
|
edition.workspace = true
|
||||||
|
homepage.workspace = true
|
||||||
|
repository.workspace = true
|
||||||
|
authors.workspace = true
|
||||||
|
license.workspace = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
test-context-macros = { version = "0.1.4", path = "../test-context-macros/" }
|
||||||
|
async-trait = "0.1.42"
|
||||||
|
futures = "0.3"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
tokio = { version = "1.0", features = ["macros", "rt"] }
|
||||||
Loading…
Reference in a new issue