Skip to content

Commit e372d94

Browse files
authored
Merge pull request #21 from alecmocatta/bump-relative
Bump to relative 0.2
2 parents 2dcd236 + f8304ef commit e372d94

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

.mergify.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ pull_request_rules:
33
conditions:
44
- base=master
55
- status-success=tests
6-
- label!=work-in-progress
6+
- "label!=work in progress"
77
- "#approved-reviews-by>=1"
88
- "#review-requested=0"
99
- "#changes-requested-reviews-by=0"
10-
- "#commented-reviews-by=0"
1110
actions:
1211
merge:
1312
method: merge
@@ -17,11 +16,10 @@ pull_request_rules:
1716
conditions:
1817
- base=master
1918
- status-success=tests
20-
- label!=work-in-progress
19+
- "label!=work in progress"
2120
- author=alecmocatta # https://github.com/Mergifyio/mergify-engine/issues/451
2221
- "#review-requested=0"
2322
- "#changes-requested-reviews-by=0"
24-
- "#commented-reviews-by=0"
2523
actions:
2624
merge:
2725
method: merge
@@ -36,10 +34,10 @@ pull_request_rules:
3634
- "title~=^WIP: .*"
3735
actions:
3836
label:
39-
add: ["work-in-progress"]
37+
add: ["work in progress"]
4038
- name: auto remove wip label
4139
conditions:
4240
- "-title~=^WIP: .*"
4341
actions:
4442
label:
45-
remove: ["work-in-progress"]
43+
remove: ["work in progress"]

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "serde_traitobject"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
license = "MIT OR Apache-2.0"
55
authors = ["Alec Mocatta <[email protected]>"]
66
categories = ["development-tools","encoding","rust-patterns","network-programming"]
@@ -12,7 +12,7 @@ This library enables the serialization and deserialization of trait objects such
1212
"""
1313
repository = "https://github.com/alecmocatta/serde_traitobject"
1414
homepage = "https://github.com/alecmocatta/serde_traitobject"
15-
documentation = "https://docs.rs/serde_traitobject/0.2.0"
15+
documentation = "https://docs.rs/serde_traitobject/0.2.1"
1616
readme = "README.md"
1717
edition = "2018"
1818

@@ -24,7 +24,7 @@ maintenance = { status = "actively-developed" }
2424
serde = "1.0"
2525
erased-serde = "0.3"
2626
metatype = "0.2"
27-
relative = "0.1.2"
27+
relative = "0.2"
2828

2929
[dev-dependencies]
3030
serde_derive = "1.0"

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
[![MIT / Apache 2.0 licensed](https://img.shields.io/crates/l/serde_traitobject.svg?maxAge=2592000)](#License)
55
[![Build Status](https://dev.azure.com/alecmocatta/serde_traitobject/_apis/build/status/tests?branchName=master)](https://dev.azure.com/alecmocatta/serde_traitobject/_build/latest?branchName=master)
66

7-
[Docs](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/)
7+
[Docs](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/)
88

99
**Serializable and deserializable trait objects.**
1010

1111
This library enables the serialization and deserialization of trait objects so they can be sent between other processes running the same binary.
1212

1313
For example, if you have multiple forks of a process, or the same binary running on each of a cluster of machines, this library lets you send trait objects between them.
1414

15-
Any trait can be made (de)serializable when made into a trait object by adding this crate's [Serialize](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Serialize.html) and [Deserialize](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Deserialize.html) traits as supertraits:
15+
Any trait can be made (de)serializable when made into a trait object by adding this crate's [Serialize](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Serialize.html) and [Deserialize](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Deserialize.html) traits as supertraits:
1616

1717
```rust
1818
trait MyTrait: serde_traitobject::Serialize + serde_traitobject::Deserialize {
@@ -28,12 +28,12 @@ struct Message(#[serde(with = "serde_traitobject")] Box<dyn MyTrait>);
2828
And that's it! The two traits are automatically implemented for all `T: serde::Serialize` and all `T: serde::de::DeserializeOwned`, so as long as all implementors of your trait are themselves serializable then you're good to go.
2929

3030
There are two ways to (de)serialize your trait object:
31-
* Apply the `#[serde(with = "serde_traitobject")]` [field attribute](https://serde.rs/attributes.html), which instructs serde to use this crate's [serialize](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/fn.serialize.html) and [deserialize](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/fn.deserialize.html) functions;
32-
* The [Box](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/struct.Box.html), [Rc](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/struct.Rc.html) and [Arc](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/struct.Arc.html) structs, which are simple wrappers around their stdlib counterparts that automatically handle (de)serialization without needing the above annotation;
31+
* Apply the `#[serde(with = "serde_traitobject")]` [field attribute](https://serde.rs/attributes.html), which instructs serde to use this crate's [serialize](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/fn.serialize.html) and [deserialize](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/fn.deserialize.html) functions;
32+
* The [Box](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/struct.Box.html), [Rc](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/struct.Rc.html) and [Arc](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/struct.Arc.html) structs, which are simple wrappers around their stdlib counterparts that automatically handle (de)serialization without needing the above annotation;
3333

3434
Additionally, there are several convenience traits implemented that extend their stdlib counterparts:
3535

36-
* [Any](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Any.html), [Debug](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Debug.html), [Display](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Display.html), [Error](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Error.html), [Fn](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.Fn.html), [FnMut](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.FnMut.html), [FnOnce](https://docs.rs/serde_traitobject/0.2.0/serde_traitobject/trait.FnOnce.html)
36+
* [Any](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Any.html), [Debug](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Debug.html), [Display](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Display.html), [Error](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Error.html), [Fn](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.Fn.html), [FnMut](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.FnMut.html), [FnOnce](https://docs.rs/serde_traitobject/0.2.1/serde_traitobject/trait.FnOnce.html)
3737

3838
These are automatically implemented on all implementors of their stdlib counterparts that also implement `serde::Serialize` and `serde::de::DeserializeOwned`.
3939

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
//!
9595
//! This crate currently requires Rust nightly.
9696
97-
#![doc(html_root_url = "https://docs.rs/serde_traitobject/0.2.0")]
97+
#![doc(html_root_url = "https://docs.rs/serde_traitobject/0.2.1")]
9898
#![feature(
9999
arbitrary_self_types,
100100
coerce_unsized,

0 commit comments

Comments
 (0)