protwrap

Check-in Differences
Login

Check-in Differences

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Difference From protwrap-0.3.2 To protwrap-0.3.3

2024-10-18
12:12
Release maintenance. Leaf check-in: 379b3a4aee user: jan tags: protwrap-0.3.3, trunk
12:11
Connector::display_addr() check-in: ace7de4d79 user: jan tags: trunk
2024-10-15
10:08
Change log maintenance. check-in: bc130369aa user: jan tags: trunk
10:02
Release maintenance. check-in: 74d883c5fd user: jan tags: protwrap-0.3.2, trunk
09:58
Fix Windows build. check-in: f5bad5e805 user: jan tags: trunk

Changes to Cargo.toml.

1
2
3
4
5
6
7
8
9
10
[package]
name = "protwrap"
version = "0.3.2"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "asynchronous", "network-programming" ]
keywords = [ "network", "wrapper" ]
repository = "https://repos.qrnch.tech/pub/protwrap"
description = "Thin protocol wrapper for network applications."


|







1
2
3
4
5
6
7
8
9
10
[package]
name = "protwrap"
version = "0.3.3"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "asynchronous", "network-programming" ]
keywords = [ "network", "wrapper" ]
repository = "https://repos.qrnch.tech/pub/protwrap"
description = "Thin protocol wrapper for network applications."

Changes to src/tokio/client/connector.rs.

120
121
122
123
124
125
126
















127
128
129
130
131
132
133
  /// parsed.
  #[cfg(feature = "tls")]
  pub fn tls_tcp(s: &str) -> Result<Self, Error> {
    Ok(Self::TlsTcp(TlsTcpConnInfo::from_str(s)?))
  }
}


















// ToDo: Add tls/tcp parameters parsing
impl FromStr for Connector {
  type Err = Error;
  fn from_str(s: &str) -> Result<Self, Self::Err> {
    #[cfg(unix)]
    if s.find('/').is_some() {







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
  /// parsed.
  #[cfg(feature = "tls")]
  pub fn tls_tcp(s: &str) -> Result<Self, Error> {
    Ok(Self::TlsTcp(TlsTcpConnInfo::from_str(s)?))
  }
}

impl Connector {
  /// Return a displayable string representation of the `Connector`'s target
  /// address.
  ///
  /// The returned string is not intended to be reversible.
  #[must_use]
  pub fn display_addr(&self) -> String {
    match self {
      Self::Tcp(ref tci) => tci.addr.clone(),
      #[cfg(unix)]
      Self::Uds(ref uci) => uci.fname.display().to_string(),
      #[cfg(feature = "tls")]
      Self::TlsTcp(ref ttci) => ttci.addr.clone()
    }
  }
}

// ToDo: Add tls/tcp parameters parsing
impl FromStr for Connector {
  type Err = Error;
  fn from_str(s: &str) -> Result<Self, Self::Err> {
    #[cfg(unix)]
    if s.find('/').is_some() {

Changes to www/changelog.md.

1
2
3
4
5
6
7
8
9
10
11
12
13
14












15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Change Log

⚠️  indicates a breaking change.

## [Unreleased]

[Details](/vdiff?from=protwrap-0.3.2&to=trunk)

### Added

### Changed

### Removed













---

## [0.3.2] - 2024-10-15

[Details](/vdiff?from=protwrap-0.3.1&to=protwrap-0.3.2)

### Changed

- Bug Fix: Fix Windows build.

---

## [0.3.1] - 2024-10-07

[Details](/vdiff?from=protwrap-0.3.0&to=protwrap-0.3.1)

### Changed

- Derive `Debug` and `Clone` on `tokio::client::connector::Connector`.







|







>
>
>
>
>
>
>
>
>
>
>
>












|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Change Log

⚠️  indicates a breaking change.

## [Unreleased]

[Details](/vdiff?from=protwrap-0.3.3&to=trunk)

### Added

### Changed

### Removed

---

## [0.3.3] - 2024-10-18

[Details](/vdiff?from=protwrap-0.3.2&to=protwrap-0.3.3)

### Added

- Add `Connector::display_addr()` that can be used to acquire a `String`
  representation of the `Connector`'s target address.  The returned string is
  intended for display/logging, and may not be reversible.

---

## [0.3.2] - 2024-10-15

[Details](/vdiff?from=protwrap-0.3.1&to=protwrap-0.3.2)

### Changed

- Bug Fix: Fix Windows build.

---

## [0.3.1] (yanked) - 2024-10-07

[Details](/vdiff?from=protwrap-0.3.0&to=protwrap-0.3.1)

### Changed

- Derive `Debug` and `Clone` on `tokio::client::connector::Connector`.