Skip to content

Commit c9198cb

Browse files
authored
Prepare 0.5.1 (#160)
1 parent b9d57d6 commit c9198cb

File tree

2 files changed

+40
-21
lines changed

2 files changed

+40
-21
lines changed

CHANGELOG.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
### Fixed
13+
14+
### Changed
15+
16+
## [0.5.1]
17+
18+
Note: this release splits the project into multiple crates, to prepare for adding concurrent store implementations.
19+
While this might seem like a breaking change, the API has not been altered and your `Cargo.toml` should now look like:
20+
21+
```toml
22+
[dependencies]
23+
presage = { git = "https://github.com/whisperfish/presage" }
24+
presage-store-sled = { git = "https://github.com/whisperfish/presage" }
25+
```
26+
27+
and then get the store implementation from the store crate instead when importing it like `use presage_store_sled::SledStore;`.
28+
29+
### Added
30+
1231
- Add `Manager::submit_recaptcha_challenge`. (#143)
1332
- Cache profile API responses. (#134)
33+
- Add `is_registered` method to the store trait. (#156)
1434

1535
### Fixed
1636

@@ -23,7 +43,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2343

2444
- Handle message deletion sent by contacts. (#147)
2545
- Split `presage` into multiple crates, before introducing additional store implementations. (#148)
26-
- Messages are now sent, whenever possible (which should be all the time), as [sealed sender](https://signal.org/blog/sealed-sender/). [#159]
46+
- Messages are now sent, whenever possible (which should be all the time), as [sealed sender](https://signal.org/blog/sealed-sender/). [#159]
47+
- Split project into multiple crates. (#148)
2748

2849
## [0.5.0]
2950

@@ -52,3 +73,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5273
- Encrypt registration data (when store encryption is enabled). (#114)
5374

5475
[0.5.0]: https://github.com/whisperfish/presage/compare/0.4.0...0.5.0
76+
[0.5.1]: https://github.com/whisperfish/presage/compare/0.5.0...0.5.1
77+
[Unreleased]: https://github.com/whisperfish/presage/compare/0.5.1...main

README.md

+16-20
Original file line numberDiff line numberDiff line change
@@ -27,33 +27,29 @@ Features:
2727

2828
## Instructions
2929

30-
Included in this repository is a CLI very similar (on purpose) to the great [signal-cli](https://github.com/AsamK/signal-cli):
30+
Add the following to your `Cargo.toml`:
3131

32+
```toml
33+
[dependencies]
34+
presage = { git = "https://github.com/whisperfish/presage" }
35+
presage-store-sled = { git = "https://github.com/whisperfish/presage" }
3236
```
33-
# print help section
34-
cargo run --example=cli -- --help
35-
36-
# link as secondary device, a PNG with a QR code to scan should open
37-
cargo run --example=cli -- link-device --device-name presage
3837

39-
# start receiving messages
40-
cargo run --example=cli -- receive
41-
```
38+
and look at the generated Rust documentation of the `Manager` struct to get started.
4239

43-
For usage of the library, a few examples are included under the `examples/` directory, and most features are demonstrated
44-
in [examples/cli.rs](./examples/cli.rs).
40+
## Demo CLI
4541

46-
## Migration notes
42+
Included in this repository is a CLI very similar (on purpose) to the great [signal-cli](https://github.com/AsamK/signal-cli):
4743

48-
### Migrating from `0.5.x` to `0.6.x`
44+
```
45+
# print help section
46+
cargo run -- --help
4947
50-
Apart from the few obvious changes in the API, one of the main differences between both versions is that you will now
51-
require to use two crates as `[dependencies]`, one for the library and one for the store backend, which could look like:
48+
# link as secondary device, a PNG with a QR code to scan should open
49+
cargo run -- link-device --device-name presage
5250
53-
```toml
54-
[dependencies]
55-
presage = { git = "https://github.com/whisperfish/presage" }
56-
presage-store-sled = { git = "https://github.com/whisperfish/presage" }
51+
# start receiving messages
52+
cargo run -- receive
5753
```
5854

59-
and then get the store implementation from the store crate instead when importing it like `use presage_store_sled::SledStore;`.
55+
For using the library, the CLI is a good starting point to learn how the API can be used.

0 commit comments

Comments
 (0)