Skip to content

Commit cc4c5e8

Browse files
committed
feat: add serde-decimal and serde-secrecy crates
1 parent 0f06c8b commit cc4c5e8

33 files changed

+1496
-65
lines changed

.cspell.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 0.2
2+
words:
3+
- clippy
4+
- MSRV
5+
- RUSTDOCFLAGS
6+
- rustup
7+
- serde
8+
- taplo

.taplo.toml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@ column_width = 100
66

77
[[rule]]
88
include = ["**/Cargo.toml"]
9-
keys = ["dependencies", "*-dependencies"]
10-
11-
[rule.formatting]
12-
reorder_keys = true
9+
keys = [
10+
"dependencies",
11+
"*-dependencies",
12+
"workspace.dependencies",
13+
"workspace.*-dependencies",
14+
"target.*.dependencies",
15+
"target.*.*-dependencies",
16+
]
17+
formatting.reorder_keys = true
1318

1419
[[rule]]
1520
include = ["**/Cargo.toml"]
16-
keys = ["dependencies.*", "*-dependencies.*"]
17-
18-
[rule.formatting]
19-
reorder_keys = false
21+
keys = [
22+
"dependencies.*",
23+
"*-dependencies.*",
24+
"workspace.dependencies.*",
25+
"workspace.*-dependencies.*",
26+
"target.*.dependencies",
27+
"target.*.*-dependencies",
28+
]
29+
formatting.reorder_keys = false

.vscode/settings.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

Cargo.toml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
[package]
2-
name = "serde-bool"
3-
version = "0.1.3"
1+
[workspace]
2+
resolver = "3"
3+
crates = ["crates/*"]
4+
5+
[workspace.package]
46
authors = ["Rob Ede <[email protected]>"]
5-
description = "Single value, true or false, boolean deserializers"
6-
categories = ["encoding", "no-std", "no-std::no-alloc"]
7-
keywords = ["serde", "utilities", "serialization", "deserialization"]
8-
repository = "https://github.com/x52dev/serde-bool"
7+
repository = "https://github.com/x52dev/serde-utils"
98
license = "MIT OR Apache-2.0"
109
edition = "2021"
1110
rust-version = "1.56"
1211

13-
[dependencies]
14-
serde = { version = "1", default-features = false }
15-
16-
[dev-dependencies]
17-
serde = { version = "1", features = ["derive"] }
18-
serde_json = "1"
19-
toml = "0.8"
12+
[workspace.dependencies]

LICENSE-APACHE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2017-NOW Actix Team
189+
Copyright 2017-NOW Rob Ede
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017-NOW Actix Team
1+
Copyright (c) 2023-NOW Rob Ede
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated

crates/serde-bool/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "serde-bool"
3+
version = "0.1.3"
4+
description = "Single value, true or false, boolean deserializers"
5+
categories = ["encoding", "no-std", "no-std::no-alloc"]
6+
keywords = ["serde", "utilities", "serialization", "deserialization"]
7+
authors.workspace = true
8+
repository.workspace = true
9+
license.workspace = true
10+
edition.workspace = true
11+
rust-version.workspace = true
12+
13+
[dependencies]
14+
serde = { version = "1", default-features = false }
15+
16+
[dev-dependencies]
17+
serde = { version = "1", features = ["derive"] }
18+
serde_json = "1"
19+
toml = "0.8"

crates/serde-bool/LICENSE-APACHE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LICENSE-APACHE

crates/serde-bool/LICENSE-MIT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../LICENSE-MIT

README.md renamed to crates/serde-bool/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Single value, true or false, boolean deserializers.
2020

2121
## Examples
2222

23-
Supporting serde untagged enums where only one boolean value is valid, allowing fallthrough to
24-
the next variant. Avoids need to wrap all fields in `Option<_>` just in case feature is disabled.
23+
Supporting serde untagged enums where only one boolean value is valid, allowing fallthrough to the next variant. Avoids need to wrap all fields in `Option<_>` just in case feature is disabled.
2524

2625
```rust
2726
#[derive(Debug, serde::Deserialize)]

0 commit comments

Comments
 (0)