Skip to content

Commit 31f7c27

Browse files
committed
feat: release 0.4.0-alpha.1 (#102)
* feat: release 0.4.0-alpha.1 * fix: serde cfg_attr in store.rs * fix: requires in Cargo.toml
1 parent 02dc01e commit 31f7c27

File tree

7 files changed

+19
-24
lines changed

7 files changed

+19
-24
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Add `eventually` into your project dependencies:
5656

5757
```toml
5858
[dependencies]
59-
eventually = "0.3"
59+
eventually = { version = "0.4.0-alpha.1", features = ["full"] }
6060
```
6161

6262
Check out [`eventually-test`](eventually-test) crate to see how to use the different

eventually-core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "eventually-core"
33
description = "Foundation crate for using Event Sourcing in Rust applications"
4-
version = "0.4.0"
4+
version = "0.4.0-alpha.1"
55
edition = "2018"
66
authors = ["Danilo Cianfrone <[email protected]>"]
77
license = "MIT"

eventually-core/src/store.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::ops::Deref;
77
use futures::future::BoxFuture;
88
use futures::stream::BoxStream;
99

10+
#[cfg(feature = "serde")]
1011
use serde::{Deserialize, Serialize};
1112

1213
use crate::versioning::Versioned;
@@ -187,7 +188,7 @@ pub struct Persisted<SourceId, T> {
187188
source_id: SourceId,
188189
version: u32,
189190
sequence_number: u32,
190-
#[serde(flatten)]
191+
#[cfg_attr(feature = "serde", serde(flatten))]
191192
event: T,
192193
}
193194

eventually-postgres/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "eventually-postgres"
33
description = "Event Store implementation using PostgreSQL for the Eventually crate"
4-
version = "0.2.0"
4+
version = "0.2.0-alpha.1"
55
edition = "2018"
66
authors = ["Danilo Cianfrone <[email protected]>"]
77
license = "MIT"
@@ -12,16 +12,16 @@ categories = ["web-programming", "asynchronous"]
1212
keywords = ["postgres", "postgresql", "database", "ddd", "event-sourcing"]
1313

1414
[dependencies]
15-
eventually-core = { version = "0.4", path = "../eventually-core", features = ["serde"] }
15+
eventually-core = { version = "0.4.0-alpha.1", path = "../eventually-core", features = ["full"] }
1616

1717
futures = "0.3"
18-
serde = "1.0"
18+
serde = { version = "1.0", features = ["derive"] }
1919
serde_json = "1.0"
2020
tokio-postgres = { version = "0.5", features = ["with-serde_json-1"] }
2121
thiserror = "1.0"
2222
refinery = { version = "0.3.0", features = ["tokio-postgres"] }
2323
anyhow = "1.0.32"
24-
tokio = { version = "0.2", features = ["sync"] }
24+
tokio = { version = "0.2", features = ["sync", "stream"] }
2525
tracing = "0.1"
2626

2727
[dev-dependencies]

eventually-test/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[package]
22
name = "eventually-test"
3-
version = "0.4.0"
3+
version = "0.4.0-alpha.1"
44
edition = "2018"
55
authors = ["Danilo Cianfrone <[email protected]>"]
66
license = "MIT"
77

88
[dependencies]
9-
eventually = { version = "0.4", path = "../eventually", features = ["full"] }
10-
# eventually-postgres = { version = "0.1", path = "../eventually-postgres" }
9+
eventually = { version = "0.4.0-alpha.1", path = "../eventually", features = ["full"] }
1110

1211
chrono = { version = "0.4", features = ["serde"] }
1312
env_logger = "0.7"

eventually-util/Cargo.toml

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
[package]
22
name = "eventually-util"
33
description = "Extension crate containing utility components for using Event Sourcing in Rust applications"
4-
version = "0.4.0"
4+
version = "0.4.0-alpha.1"
55
edition = "2018"
66
authors = ["Danilo Cianfrone <[email protected]>"]
77
license = "MIT"
88
readme = "../README.md"
99
repository = "https://github.com/ar3s3ru/eventually-rs"
1010

11-
[features]
12-
default = []
13-
full = ["serde"]
14-
1511
[dependencies]
16-
eventually-core = { version = "0.4", path = "../eventually-core", features = ["serde"] }
12+
eventually-core = { version = "0.4.0-alpha.1", path = "../eventually-core", features = ["full"] }
1713

18-
futures = { version = "0.3", features = ["async-await"] }
14+
futures = "0.3"
1915
parking_lot = "0.11.0"
20-
serde = { version = "1.0", features = ["derive"], optional = true }
2116
thiserror = "1.0"
22-
tokio = { version = "0.2", features = ["sync"] }
17+
tokio = { version = "0.2", features = ["sync", "stream"] }
2318
anyhow = "1.0"
2419

2520
[dev-dependencies]

eventually/Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "eventually"
33
description = "Crate for using Event Sourcing in Rust applications"
4-
version = "0.4.0"
4+
version = "0.4.0-alpha.1"
55
edition = "2018"
66
authors = ["Danilo Cianfrone <[email protected]>"]
77
license = "MIT"
@@ -13,14 +13,14 @@ keywords = ["architecture", "ddd", "event-sourcing", "cqrs", "es"]
1313

1414
[features]
1515
default = []
16-
serde = ["eventually-core/serde", "eventually-util/serde"]
16+
serde = ["eventually-core/serde"]
1717
postgres = ["eventually-postgres"]
1818
full = ["serde", "postgres"]
1919

2020
[dependencies]
21-
eventually-core = { version = "0.4", path = "../eventually-core" }
22-
eventually-util = { version = "0.4", path = "../eventually-util" }
23-
eventually-postgres = { version = "0.2", path = "../eventually-postgres", optional = true }
21+
eventually-core = { version = "0.4.0-alpha.1", path = "../eventually-core" }
22+
eventually-util = { version = "0.4.0-alpha.1", path = "../eventually-util" }
23+
eventually-postgres = { version = "0.2.0-alpha.1", path = "../eventually-postgres", optional = true }
2424

2525
[dev-dependencies]
2626
futures = { version = "0.3", features = ["async-await"] }

0 commit comments

Comments
 (0)