orphanage

Check-in Differences
Login

Check-in Differences

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

Difference From orphanage-0.0.4 To orphanage-0.1.0

2024-10-19
13:53
Change log. check-in: 3a8934a118 user: jan tags: orphanage-0.1.1, trunk
2024-10-07
01:18
Exclude examples from publishing. check-in: d41a277a0d user: jan tags: orphanage-0.1.0, trunk
01:15
Release maintenance. check-in: 2fdfd4c082 user: jan tags: trunk
01:13
Implement Clone and Deref for ExpandedPath. check-in: 99fe9a59fa user: jan tags: trunk
2024-10-06
22:12
Add ExpandedPath. check-in: b3c52dc5fc user: jan tags: orphanage-0.0.4, trunk
2024-09-20
12:47
Add an example/test for if_some. check-in: d5a667fbd8 user: jan tags: trunk

Changes to Cargo.toml.

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

16
17
18
19
20
21
22
[package]
name = "orphanage"
version = "0.0.4"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "network-programming" ]
keywords = [ "sqlite", "fs", "path" ]
repository = "https://repos.qrnch.tech/pub/orphanage"
description = "Random collection of stuff that is still searching for a home."
rust-version = "1.74"
exclude = [
  ".fossil-settings",
  ".efiles",
  ".fslckout",

  "www",
  "bacon.toml",
  "rustfmt.toml"
]

# https://doc.rust-lang.org/cargo/reference/manifest.html#the-badges-section
[badges]


|












>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[package]
name = "orphanage"
version = "0.1.0"
edition = "2021"
license = "0BSD"
# https://crates.io/category_slugs
categories = [ "network-programming" ]
keywords = [ "sqlite", "fs", "path" ]
repository = "https://repos.qrnch.tech/pub/orphanage"
description = "Random collection of stuff that is still searching for a home."
rust-version = "1.74"
exclude = [
  ".fossil-settings",
  ".efiles",
  ".fslckout",
  "examples",
  "www",
  "bacon.toml",
  "rustfmt.toml"
]

# https://doc.rust-lang.org/cargo/reference/manifest.html#the-badges-section
[badges]

Changes to src/serde_parsers.rs.

24
25
26
27
28
29
30


31

32
33
34
35
36
37
38
//!   decsize_opt: Option<DecSize>,
//!
//!   /// Support optional `~/tmp`
//!   epth: Option<ExpandedPath>
//! }
//! ```



use std::path::{Path, PathBuf};


use serde::{de::Deserializer, Deserialize};

#[derive(Debug, Default, PartialEq, Eq)]
pub struct Count(pub u64);

impl Count {







>
>
|
>







24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//!   decsize_opt: Option<DecSize>,
//!
//!   /// Support optional `~/tmp`
//!   epth: Option<ExpandedPath>
//! }
//! ```

use std::{
  ops::Deref,
  path::{Path, PathBuf}
};

use serde::{de::Deserializer, Deserialize};

#[derive(Debug, Default, PartialEq, Eq)]
pub struct Count(pub u64);

impl Count {
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162



163









164
165
166
167
168
169
170
    D: Deserializer<'de>
  {
    decsize(deserializer)
  }
}


#[derive(Debug, Default, PartialEq, Eq)]
pub struct ExpandedPath(pub PathBuf);

impl ExpandedPath {
  #[must_use]
  pub fn get(&self) -> &Path {
    &self.0
  }
}














#[allow(clippy::missing_errors_doc)]
pub fn expand_path<'de, D>(deserializer: D) -> Result<ExpandedPath, D::Error>
where
  D: Deserializer<'de>
{
  let s = String::deserialize(deserializer)?;







|







|
>
>
>
|
>
>
>
>
>
>
>
>
>







150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
    D: Deserializer<'de>
  {
    decsize(deserializer)
  }
}


#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct ExpandedPath(pub PathBuf);

impl ExpandedPath {
  #[must_use]
  pub fn get(&self) -> &Path {
    &self.0
  }

  #[must_use]
  pub fn into_inner(self) -> PathBuf {
    self.0
  }
}

impl Deref for ExpandedPath {
  type Target = Path;

  fn deref(&self) -> &Self::Target {
    &self.0
  }
}

#[allow(clippy::missing_errors_doc)]
pub fn expand_path<'de, D>(deserializer: D) -> Result<ExpandedPath, D::Error>
where
  D: Deserializer<'de>
{
  let s = String::deserialize(deserializer)?;

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
# Change Log

## [Unreleased]

[Details](/vdiff?from=orphanage-0.0.3&to=trunk)

### Added

Add a `ExpandedPath` deserializer.

### Changed

### Removed





















---

## [0.0.3] - 2024-09-14

[Details](/vdiff?from=orphanage-0.0.2&to=orphanage-0.0.3)

### Added




|



<
<




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







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
# Change Log

## [Unreleased]

[Details](/vdiff?from=orphanage-0.1.0&to=trunk)

### Added



### Changed

### Removed

---

## [0.1.0]

[Details](/vdiff?from=orphanage-0.0.4&to=orphanage-0.1.0)

### Added

- Implement `Clone` and `Deref` for `ExpandedPath`.

---

## [0.0.4] - 2024-10-06

[Details](/vdiff?from=orphanage-0.0.3&to=orphanage-0.0.4)

### Added

- Add a `ExpandedPath` deserializer.

---

## [0.0.3] - 2024-09-14

[Details](/vdiff?from=orphanage-0.0.2&to=orphanage-0.0.3)

### Added