Skip to content

Commit 0f2143b

Browse files
author
Daniel Egger
committed
Bump version to 0.98
Signed-off-by: Daniel Egger <[email protected]>
1 parent 6282a95 commit 0f2143b

File tree

6 files changed

+24
-8
lines changed

6 files changed

+24
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ members = [
88

99
[workspace.dependencies]
1010
rhai = { version = "1.16", features = ["serde", "internals"] }
11-
rusp-lib = { version = "0.97", path = "rusp-lib" }
12-
rhai-rusp = { version = "0.97", path = "rhai-rusp" }
11+
rusp-lib = { version = "0.98", path = "rusp-lib" }
12+
rhai-rusp = { version = "0.98", path = "rhai-rusp" }
1313

1414
anyhow = "1.0"
1515
serde = "1.0"

rhai-rusp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Daniel Egger <[email protected]>", "Axiros GmbH"]
33
description = "Rhai bindings for the Rust USP toolkit"
44
name = "rhai-rusp"
5-
version = "0.97.0"
5+
version = "0.98.0"
66
edition = "2021"
77
license = "BSD-3-Clause"
88
readme = "README.md"

rhai-rusp/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Rhai interpreter. To use `rhai-rusp` as a library, you simply need to add the
1515

1616
```
1717
[dependencies]
18-
rhai-rusp = "0.97"
18+
rhai-rusp = "0.98"
1919
```
2020

2121
The usual steps to embed a Rhai interpreter with rusp support are:
@@ -70,6 +70,22 @@ let record = rusp::record_builder()
7070

7171
builds a body with a **Get** request, wraps it in a USP **Msg** and encapsulates that in a USP **Record**.
7272

73+
The same can since 0.98 also be achieved much more compactly via:
74+
75+
```Rhai
76+
let record = rusp::get_builder()
77+
.with_params(["Device."])
78+
.with_max_depth(2)
79+
.build()
80+
.as_msg_builder()
81+
.with_msg_id("Foo")
82+
.as_no_session_record_builder()
83+
.with_version("1.3")
84+
.with_to_id("proto::to")
85+
.with_from_id("proto::from")
86+
.build();
87+
```
88+
7389
## What else?
7490

7591
You may use this crate however you like under the [BSD 3-Clause Licence](LICENSE).

rusp-bin/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "BSD-3-Clause"
66
name = "rusp"
77
readme = "README.md"
88
repository = "https://github.com/axiros/rusp"
9-
version = "0.97.0"
9+
version = "0.98.0"
1010

1111
[badges]
1212
[badges.travis-ci]

rusp-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ license = "BSD-3-Clause"
66
name = "rusp-lib"
77
readme = "README.md"
88
repository = "https://github.com/axiros/rusp"
9-
version = "0.97.0"
9+
version = "0.98.0"
1010

1111
[badges]
1212
[badges.travis-ci]

rusp-lib/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ The crate contains is the library part or Rusp, which contains:
2020

2121
```
2222
[dependencies]
23-
rusp-lib = "0.97"
23+
rusp-lib = "0.98"
2424
quick-protobuf = "0.8"
2525
```
2626

2727
Please note that as of v0.95, the library and the application have been split into two parts, `rusp-lib` and `rusp`. In order to seamlessly continue what is now `rusp-lib` you have three options:
2828

2929
1. Rename all uses of the `rusp` namespace into `rusp_lib` in your source code
3030
2. Put a `use rusp_lib as rusp;` line at the top of each code file using the `rusp` namespace
31-
2. Rename the library via `Cargo.toml` by declaring the dependency as `rusp = { version = "0.97", package = "rusp-lib" }`
31+
2. Rename the library via `Cargo.toml` by declaring the dependency as `rusp = { version = "0.98", package = "rusp-lib" }`
3232

3333
Documentation and examples for its use can be found on [docs.rs](https://docs.rs/rusp/latest/rusp-lib/index.html).
3434

0 commit comments

Comments
 (0)