diff --git a/CHANGELOG.md b/CHANGELOG.md index 20a29e9..390ba44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## v0.3.0 (pre-release) +## v0.3.0 (2025-01-08) - Introduce Accessor Component Macros - [#56](https://github.com/contextgeneric/cgp/pull/55) - Introduce `#[cgp_getter]` attribute macro that extends `#[cgp_component]` and implement diff --git a/Cargo.lock b/Cargo.lock index 2ac7741..c637591 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" [[package]] name = "cgp" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async", "cgp-core", @@ -19,7 +19,7 @@ dependencies = [ [[package]] name = "cgp-async" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async-macro", "cgp-sync", @@ -27,7 +27,7 @@ dependencies = [ [[package]] name = "cgp-async-macro" -version = "0.2.0" +version = "0.3.0" dependencies = [ "proc-macro2", "quote", @@ -36,11 +36,11 @@ dependencies = [ [[package]] name = "cgp-component" -version = "0.2.0" +version = "0.3.0" [[package]] name = "cgp-component-macro" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-component-macro-lib", "syn", @@ -48,7 +48,7 @@ dependencies = [ [[package]] name = "cgp-component-macro-lib" -version = "0.2.0" +version = "0.3.0" dependencies = [ "itertools", "prettyplease", @@ -59,7 +59,7 @@ dependencies = [ [[package]] name = "cgp-core" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async", "cgp-component", @@ -72,7 +72,7 @@ dependencies = [ [[package]] name = "cgp-error" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async", "cgp-component", @@ -82,7 +82,7 @@ dependencies = [ [[package]] name = "cgp-error-anyhow" -version = "0.2.0" +version = "0.3.0" dependencies = [ "anyhow", "cgp-core", @@ -90,14 +90,14 @@ dependencies = [ [[package]] name = "cgp-error-extra" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-error", ] [[package]] name = "cgp-error-eyre" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-core", "eyre", @@ -105,14 +105,14 @@ dependencies = [ [[package]] name = "cgp-error-std" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-core", ] [[package]] name = "cgp-extra" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-error-extra", "cgp-inner", @@ -122,7 +122,7 @@ dependencies = [ [[package]] name = "cgp-field" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-component", "cgp-type", @@ -130,7 +130,7 @@ dependencies = [ [[package]] name = "cgp-field-macro" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-field-macro-lib", "proc-macro2", @@ -138,7 +138,7 @@ dependencies = [ [[package]] name = "cgp-field-macro-lib" -version = "0.2.0" +version = "0.3.0" dependencies = [ "prettyplease", "proc-macro2", @@ -148,7 +148,7 @@ dependencies = [ [[package]] name = "cgp-inner" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-component", "cgp-component-macro", @@ -156,7 +156,7 @@ dependencies = [ [[package]] name = "cgp-run" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async", "cgp-component", @@ -166,21 +166,21 @@ dependencies = [ [[package]] name = "cgp-runtime" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-core", ] [[package]] name = "cgp-sync" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-async-macro", ] [[package]] name = "cgp-type" -version = "0.2.0" +version = "0.3.0" dependencies = [ "cgp-component", "cgp-component-macro", diff --git a/crates/cgp-async-macro/Cargo.toml b/crates/cgp-async-macro/Cargo.toml index b95e03c..acfe3ed 100644 --- a/crates/cgp-async-macro/Cargo.toml +++ b/crates/cgp-async-macro/Cargo.toml @@ -5,7 +5,7 @@ license = { workspace = true } repository = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } -version = "0.2.0" +version = "0.3.0" keywords = { workspace = true } description = """ Context-generic programming async macros diff --git a/crates/cgp-async/Cargo.toml b/crates/cgp-async/Cargo.toml index c08f4c0..ec3a6f9 100644 --- a/crates/cgp-async/Cargo.toml +++ b/crates/cgp-async/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-async" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -25,5 +25,5 @@ sync = [ "async" ] static = [ "async" ] [dependencies] -cgp-async-macro = { version = "0.2.0" } -cgp-sync = { version = "0.2.0" } \ No newline at end of file +cgp-async-macro = { version = "0.3.0" } +cgp-sync = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-component-macro-lib/Cargo.toml b/crates/cgp-component-macro-lib/Cargo.toml index cb851ac..d4a542d 100644 --- a/crates/cgp-component-macro-lib/Cargo.toml +++ b/crates/cgp-component-macro-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-component-macro-lib" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } diff --git a/crates/cgp-component-macro/Cargo.toml b/crates/cgp-component-macro/Cargo.toml index 7052328..9a66443 100644 --- a/crates/cgp-component-macro/Cargo.toml +++ b/crates/cgp-component-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-component-macro" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -16,4 +16,4 @@ proc-macro = true [dependencies] syn = { version = "2.0.95", features = [ "full", "extra-traits" ] } -cgp-component-macro-lib = { version = "0.2.0" } \ No newline at end of file +cgp-component-macro-lib = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-component/Cargo.toml b/crates/cgp-component/Cargo.toml index a04c95f..d09c8e6 100644 --- a/crates/cgp-component/Cargo.toml +++ b/crates/cgp-component/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-component" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } diff --git a/crates/cgp-core/Cargo.toml b/crates/cgp-core/Cargo.toml index 6dfc8dc..e4548ea 100644 --- a/crates/cgp-core/Cargo.toml +++ b/crates/cgp-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-core" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -16,10 +16,10 @@ default = [ "full" ] full = [ "cgp-async/full" ] [dependencies] -cgp-async = { version = "0.2.0", default-features = false } -cgp-component = { version = "0.2.0" } -cgp-component-macro = { version = "0.2.0" } -cgp-type = { version = "0.2.0" } -cgp-error = { version = "0.2.0" } -cgp-field = { version = "0.2.0" } -cgp-field-macro = { version = "0.2.0" } \ No newline at end of file +cgp-async = { version = "0.3.0", default-features = false } +cgp-component = { version = "0.3.0" } +cgp-component-macro = { version = "0.3.0" } +cgp-type = { version = "0.3.0" } +cgp-error = { version = "0.3.0" } +cgp-field = { version = "0.3.0" } +cgp-field-macro = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-error-anyhow/Cargo.toml b/crates/cgp-error-anyhow/Cargo.toml index 4f09663..052a0e8 100644 --- a/crates/cgp-error-anyhow/Cargo.toml +++ b/crates/cgp-error-anyhow/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-error-anyhow" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,5 +12,5 @@ description = """ """ [dependencies] -cgp-core = { version = "0.2.0", default-features = false } +cgp-core = { version = "0.3.0", default-features = false } anyhow = { version = "1.0.95", default-features = false } \ No newline at end of file diff --git a/crates/cgp-error-extra/Cargo.toml b/crates/cgp-error-extra/Cargo.toml index a795cbe..21011df 100644 --- a/crates/cgp-error-extra/Cargo.toml +++ b/crates/cgp-error-extra/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-error-extra" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -16,4 +16,4 @@ default = [ "alloc" ] alloc = [] [dependencies] -cgp-error = { version = "0.2.0" } +cgp-error = { version = "0.3.0" } diff --git a/crates/cgp-error-eyre/Cargo.toml b/crates/cgp-error-eyre/Cargo.toml index 586db81..3f6f8fa 100644 --- a/crates/cgp-error-eyre/Cargo.toml +++ b/crates/cgp-error-eyre/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-error-eyre" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,5 +12,5 @@ description = """ """ [dependencies] -cgp-core = { version = "0.2.0", default-features = false } +cgp-core = { version = "0.3.0", default-features = false } eyre = { version = "0.6.12", default-features = false } \ No newline at end of file diff --git a/crates/cgp-error-std/Cargo.toml b/crates/cgp-error-std/Cargo.toml index 6d609c2..8ac94f8 100644 --- a/crates/cgp-error-std/Cargo.toml +++ b/crates/cgp-error-std/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-error-std" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,4 +12,4 @@ description = """ """ [dependencies] -cgp-core = { version = "0.2.0", default-features = false } \ No newline at end of file +cgp-core = { version = "0.3.0", default-features = false } \ No newline at end of file diff --git a/crates/cgp-error/Cargo.toml b/crates/cgp-error/Cargo.toml index 4bbbea6..54edeee 100644 --- a/crates/cgp-error/Cargo.toml +++ b/crates/cgp-error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-error" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,7 +12,7 @@ description = """ """ [dependencies] -cgp-async = { version = "0.2.0", default-features = false } -cgp-component = { version = "0.2.0" } -cgp-component-macro = { version = "0.2.0" } -cgp-type = { version = "0.2.0" } +cgp-async = { version = "0.3.0", default-features = false } +cgp-component = { version = "0.3.0" } +cgp-component-macro = { version = "0.3.0" } +cgp-type = { version = "0.3.0" } diff --git a/crates/cgp-extra/Cargo.toml b/crates/cgp-extra/Cargo.toml index a5d4f6c..72df01c 100644 --- a/crates/cgp-extra/Cargo.toml +++ b/crates/cgp-extra/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-extra" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -15,7 +15,7 @@ default = [ "full" ] full = [ "cgp-error-extra/alloc" ] [dependencies] -cgp-error-extra = { version = "0.2.0", default-features = false } -cgp-inner = { version = "0.2.0" } -cgp-run = { version = "0.2.0" } -cgp-runtime = { version = "0.2.0" } +cgp-error-extra = { version = "0.3.0", default-features = false } +cgp-inner = { version = "0.3.0" } +cgp-run = { version = "0.3.0" } +cgp-runtime = { version = "0.3.0" } diff --git a/crates/cgp-field-macro-lib/Cargo.toml b/crates/cgp-field-macro-lib/Cargo.toml index befab76..b496675 100644 --- a/crates/cgp-field-macro-lib/Cargo.toml +++ b/crates/cgp-field-macro-lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-field-macro-lib" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } diff --git a/crates/cgp-field-macro/Cargo.toml b/crates/cgp-field-macro/Cargo.toml index 75644f1..fefb05e 100644 --- a/crates/cgp-field-macro/Cargo.toml +++ b/crates/cgp-field-macro/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-field-macro" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -15,5 +15,5 @@ description = """ proc-macro = true [dependencies] -cgp-field-macro-lib = { version = "0.2.0" } +cgp-field-macro-lib = { version = "0.3.0" } proc-macro2 = "1.0.92" \ No newline at end of file diff --git a/crates/cgp-field/Cargo.toml b/crates/cgp-field/Cargo.toml index aeca1c4..8562bbe 100644 --- a/crates/cgp-field/Cargo.toml +++ b/crates/cgp-field/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-field" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,5 +12,5 @@ description = """ """ [dependencies] -cgp-component = { version = "0.2.0" } -cgp-type = { version = "0.2.0" } \ No newline at end of file +cgp-component = { version = "0.3.0" } +cgp-type = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-inner/Cargo.toml b/crates/cgp-inner/Cargo.toml index ab068cf..1ccc1d9 100644 --- a/crates/cgp-inner/Cargo.toml +++ b/crates/cgp-inner/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-inner" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,5 +12,5 @@ description = """ """ [dependencies] -cgp-component = { version = "0.2.0" } -cgp-component-macro = { version = "0.2.0" } \ No newline at end of file +cgp-component = { version = "0.3.0" } +cgp-component-macro = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-run/Cargo.toml b/crates/cgp-run/Cargo.toml index 0da6082..c251e11 100644 --- a/crates/cgp-run/Cargo.toml +++ b/crates/cgp-run/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-run" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,7 +12,7 @@ description = """ """ [dependencies] -cgp-async = { version = "0.2.0", default-features = false } -cgp-error = { version = "0.2.0" } -cgp-component = { version = "0.2.0" } -cgp-component-macro = { version = "0.2.0" } \ No newline at end of file +cgp-async = { version = "0.3.0", default-features = false } +cgp-error = { version = "0.3.0" } +cgp-component = { version = "0.3.0" } +cgp-component-macro = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-runtime/Cargo.toml b/crates/cgp-runtime/Cargo.toml index e045ece..0a93046 100644 --- a/crates/cgp-runtime/Cargo.toml +++ b/crates/cgp-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-runtime" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,4 +12,4 @@ description = """ """ [dependencies] -cgp-core = { version = "0.2.0" } +cgp-core = { version = "0.3.0" } diff --git a/crates/cgp-runtime/src/traits/has_runtime.rs b/crates/cgp-runtime/src/traits/has_runtime.rs index 387c1ba..54f96a4 100644 --- a/crates/cgp-runtime/src/traits/has_runtime.rs +++ b/crates/cgp-runtime/src/traits/has_runtime.rs @@ -1,5 +1,3 @@ -use cgp_core::component::WithProvider; -use cgp_core::field::FieldGetter; use cgp_core::prelude::*; use crate::HasRuntimeType; diff --git a/crates/cgp-sync/Cargo.toml b/crates/cgp-sync/Cargo.toml index e24b61f..a1d766d 100644 --- a/crates/cgp-sync/Cargo.toml +++ b/crates/cgp-sync/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-sync" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,4 +12,4 @@ description = """ """ [dependencies] -cgp-async-macro = { version = "0.2.0" } \ No newline at end of file +cgp-async-macro = { version = "0.3.0" } \ No newline at end of file diff --git a/crates/cgp-type/Cargo.toml b/crates/cgp-type/Cargo.toml index d4cd836..cbd0e80 100644 --- a/crates/cgp-type/Cargo.toml +++ b/crates/cgp-type/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp-type" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -12,5 +12,5 @@ description = """ """ [dependencies] -cgp-component = { version = "0.2.0" } -cgp-component-macro = { version = "0.2.0" } +cgp-component = { version = "0.3.0" } +cgp-component-macro = { version = "0.3.0" } diff --git a/crates/cgp/Cargo.toml b/crates/cgp/Cargo.toml index f137458..4b478fc 100644 --- a/crates/cgp/Cargo.toml +++ b/crates/cgp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cgp" -version = "0.2.0" +version = "0.3.0" edition = { workspace = true } license = { workspace = true } repository = { workspace = true } @@ -16,6 +16,6 @@ default = [ "full" ] full = [ "cgp-core/full", "cgp-extra/full" ] [dependencies] -cgp-async = { version = "0.2.0", default-features = false } -cgp-core = { version = "0.2.0", default-features = false } -cgp-extra = { version = "0.2.0", default-features = false } \ No newline at end of file +cgp-async = { version = "0.3.0", default-features = false } +cgp-core = { version = "0.3.0", default-features = false } +cgp-extra = { version = "0.3.0", default-features = false } \ No newline at end of file