From 7be9b369f48f996565c1b866c859818dd246b9a6 Mon Sep 17 00:00:00 2001 From: Richard Liebscher Date: Fri, 15 Sep 2023 21:38:23 +0200 Subject: [PATCH] Start development of 0.3.0 --- Cargo.lock | 4 ++-- chassis-proc-macros/Cargo.toml | 2 +- chassis/Cargo.toml | 4 ++-- chassis/src/lib.rs | 4 ++-- chassis/tests/version-numbers.rs | 8 ++++++++ 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1d9a046..ef203cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,7 +34,7 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "chassis" -version = "0.2.0" +version = "0.3.0-dev" dependencies = [ "assert_matches", "chassis-proc-macros", @@ -44,7 +44,7 @@ dependencies = [ [[package]] name = "chassis-proc-macros" -version = "0.2.0" +version = "0.3.0-dev" dependencies = [ "darling", "proc-macro2", diff --git a/chassis-proc-macros/Cargo.toml b/chassis-proc-macros/Cargo.toml index 0888ed1..b69635d 100644 --- a/chassis-proc-macros/Cargo.toml +++ b/chassis-proc-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chassis-proc-macros" -version = "0.2.0" +version = "0.3.0-dev" authors = ["Richard Liebscher "] readme = "../README.md" edition = "2021" diff --git a/chassis/Cargo.toml b/chassis/Cargo.toml index c64c602..f2c31ce 100644 --- a/chassis/Cargo.toml +++ b/chassis/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chassis" -version = "0.2.0" +version = "0.3.0-dev" edition = "2021" readme = "../README.md" authors = ["Richard Liebscher "] @@ -12,7 +12,7 @@ keywords = ["dependency-injection", "inversion-of-control", "di"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -chassis-proc-macros = { path = "../chassis-proc-macros", version = "=0.2.0" } +chassis-proc-macros = { path = "../chassis-proc-macros", version = "=0.3.0-dev" } [dev-dependencies] version-sync = "0.9" diff --git a/chassis/src/lib.rs b/chassis/src/lib.rs index c971e5c..963f2c4 100644 --- a/chassis/src/lib.rs +++ b/chassis/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/chassis/0.2.0")] +#![doc(html_root_url = "https://docs.rs/chassis/0.3.0-dev")] //! Compile-time dependency injector. //! @@ -20,7 +20,7 @@ //! Add `chassis` to your crate dependencies //! ```toml //! [dependencies] -//! chassis = "^0.2.0" +//! chassis = "^0.3.0-dev" //! ``` //! //! Structs will be modules that can provide dependencies with functions diff --git a/chassis/tests/version-numbers.rs b/chassis/tests/version-numbers.rs index 527a456..8df6a84 100644 --- a/chassis/tests/version-numbers.rs +++ b/chassis/tests/version-numbers.rs @@ -3,6 +3,14 @@ fn test_lib_deps() { version_sync::assert_contains_regex!("src/lib.rs", "chassis = \"\\^{version}\""); } +#[test] +fn proc_macro_dep() { + version_sync::assert_contains_regex!( + "Cargo.toml", + "chassis-proc-macros = \\{.*version = \"={version}\"" + ); +} + #[test] fn test_html_root_url() { version_sync::assert_html_root_url_updated!("src/lib.rs");