@@ -27,33 +27,29 @@ Features:
27
27
28
28
## Instructions
29
29
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 ` :
31
31
32
+ ``` toml
33
+ [dependencies ]
34
+ presage = { git = " https://github.com/whisperfish/presage" }
35
+ presage-store-sled = { git = " https://github.com/whisperfish/presage" }
32
36
```
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
38
37
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.
42
39
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
45
41
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 ) :
47
43
48
- ### Migrating from ` 0.5.x ` to ` 0.6.x `
44
+ ```
45
+ # print help section
46
+ cargo run -- --help
49
47
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
52
50
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
57
53
```
58
54
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