Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for v0.2.0 release #42

Merged
merged 2 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Pre-Release
## v0.2.0 (2025-12-08)

- Rename `define_components!` to `cgp_preset!` with slight improvement - [#41](https://github.com/contextgeneric/cgp/pull/41)
- Introduce `replace_with!` macro that allows replacement of an identifier with a list of component types in the body.
Expand Down
36 changes: 18 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@

# `cgp` - Context-Generic Programming Libraries in Rust

[![Apache 2.0 Licensed](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://github.com/informalsystems/cgp/blob/master/LICENSE)
[![Apache 2.0 Licensed](https://img.shields.io/badge/license-Apache_2.0-blue.svg)](https://github.com/contextgeneric/cgp/blob/master/LICENSE)
[![Crates.io](https://img.shields.io/crates/v/cgp.svg)](https://crates.io/crates/cgp)
![Rust Stable](https://img.shields.io/badge/rustc-stable-blue.svg)
![Rust 1.79+](https://img.shields.io/badge/rustc-1.79+-blue.svg)
![Rust 1.81+](https://img.shields.io/badge/rustc-1.81+-blue.svg)

## Overview

The `cgp` project contains a collection of micro Rust crates that empowers
_context-generic programming_ (CGP), a new programming paradigm in Rust.
To learn more about context-generic programming, check out the book
[Context-Generic Programming Patterns](https://patterns.contextgeneric.dev/).
The `cgp` project contains a collection of micro Rust crates that empowers
_context-generic programming_ (CGP), a new modular programming paradigm in Rust.
To learn more about context-generic programming, check out the
our website [contextgeneric.dev](https://contextgeneric.dev/), and
our book [Context-Generic Programming Patterns](https://patterns.contextgeneric.dev/).

## Crates Organization

The CGP core constructs are organized as many child crates that are intended
to be minimal and stable. Having each construct defined in separate crate
helps us avoid introducing breaking changes in semantic versioning, in case
to be minimal and stable. Having each construct defined in separate crate
helps us avoid introducing breaking changes in semantic versioning, in case
an unrelated construct is updated.

We also offers meta-crates that aggregate the dependencies from many CGP
child crates into one place, so that users can use CGP by specifying only one
child crates into one place, so that users can use CGP by specifying only one
dependency:

- [`cgp`](./crates/cgp/) - The main crate that includes all child crates defined in this project.
Expand Down
2 changes: 1 addition & 1 deletion crates/cgp-async-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = { workspace = true }
repository = { workspace = true }
authors = { workspace = true }
rust-version = { workspace = true }
version = "0.1.0"
version = "0.2.0"
keywords = { workspace = true }
description = """
Context-generic programming async macros
Expand Down
6 changes: 3 additions & 3 deletions crates/cgp-async/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-async"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -25,5 +25,5 @@ sync = [ "async" ]
static = [ "async" ]

[dependencies]
cgp-async-macro = { version = "0.1.0" }
cgp-sync = { version = "0.1.0" }
cgp-async-macro = { version = "0.2.0" }
cgp-sync = { version = "0.2.0" }
2 changes: 1 addition & 1 deletion crates/cgp-component-macro-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-component-macro-lib"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/cgp-component-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-component-macro"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -15,5 +15,5 @@ description = """
proc-macro = true

[dependencies]
cgp-component-macro-lib = { version = "0.1.0" }
cgp-component-macro-lib = { version = "0.2.0" }
proc-macro2 = "1.0.67"
4 changes: 2 additions & 2 deletions crates/cgp-component/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-component"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -12,4 +12,4 @@ description = """
"""

[dependencies]
cgp-component-macro = { version = "0.1.0" }
cgp-component-macro = { version = "0.2.0" }
14 changes: 7 additions & 7 deletions crates/cgp-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-core"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -16,9 +16,9 @@ default = [ "full" ]
full = [ "cgp-async/full" ]

[dependencies]
cgp-async = { version = "0.1.0", default-features = false }
cgp-component = { version = "0.1.0" }
cgp-type = { version = "0.1.0" }
cgp-error = { version = "0.1.0" }
cgp-field = { version = "0.1.0" }
cgp-inner = { version = "0.1.0" }
cgp-async = { version = "0.2.0", default-features = false }
cgp-component = { version = "0.2.0" }
cgp-type = { version = "0.2.0" }
cgp-error = { version = "0.2.0" }
cgp-field = { version = "0.2.0" }
cgp-inner = { version = "0.2.0" }
4 changes: 2 additions & 2 deletions crates/cgp-error-eyre/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-error-eyre"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -12,5 +12,5 @@ description = """
"""

[dependencies]
cgp-core = { version = "0.1.0", default-features = false }
cgp-core = { version = "0.2.0", default-features = false }
eyre = { version = "0.6.11" }
4 changes: 2 additions & 2 deletions crates/cgp-error-std/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-error-std"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -12,4 +12,4 @@ description = """
"""

[dependencies]
cgp-core = { version = "0.1.0", default-features = false }
cgp-core = { version = "0.2.0", default-features = false }
8 changes: 4 additions & 4 deletions crates/cgp-error/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-error"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -12,6 +12,6 @@ description = """
"""

[dependencies]
cgp-async = { version = "0.1.0", default-features = false }
cgp-component = { version = "0.1.0" }
cgp-type = { version = "0.1.0" }
cgp-async = { version = "0.2.0", default-features = false }
cgp-component = { version = "0.2.0" }
cgp-type = { version = "0.2.0" }
4 changes: 2 additions & 2 deletions crates/cgp-extra/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-extra"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -12,4 +12,4 @@ description = """
"""

[dependencies]
cgp-run = { version = "0.1.0" }
cgp-run = { version = "0.2.0" }
2 changes: 1 addition & 1 deletion crates/cgp-field-macro-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-field-macro-lib"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand Down
4 changes: 2 additions & 2 deletions crates/cgp-field-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cgp-field-macro"
version = "0.1.0"
version = "0.2.0"
edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
Expand All @@ -15,5 +15,5 @@ description = """
proc-macro = true

[dependencies]
cgp-field-macro-lib = { version = "0.1.0" }
cgp-field-macro-lib = { version = "0.2.0" }
proc-macro2 = "1.0.67"
Loading
Loading