Skip to content

Commit 55f009f

Browse files
Merge pull request #53 from Foundation-Devices/backup-shard-dcbor
`backup-shard`: migrate from minicbor to dcbor
2 parents e7e8b1b + b45acb6 commit 55f009f

File tree

10 files changed

+328
-70
lines changed

10 files changed

+328
-70
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
/target
22
Cargo.lock
33
/.idea
4+
5+
# Devenv
6+
.devenv*
7+
devenv.local.nix
8+
devenv.local.yaml
9+
10+
# direnv
11+
.direnv
12+
13+
# pre-commit
14+
.pre-commit-config.yaml
15+
.envrc

Cargo.lock

Lines changed: 5 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ gstp = { version = "0.11.0" }
1515

1616
chrono = "0.4"
1717
getrandom = { version = "0.2" }
18+
insta = { version = "1.43.2" }
1819
minicbor = { version = "0.24.2", features = ["alloc", "derive"] }
1920
thiserror = { version = "2" }
2021
rkyv = { version = "0.7", default-features = false, features = [
@@ -23,6 +24,7 @@ rkyv = { version = "0.7", default-features = false, features = [
2324
] }
2425

2526
# workspace crates
27+
backup-shard = { path = "backup-shard" }
2628
btp = { path = "btp" }
2729
foundation-api = { path = "api" }
2830
quantum-link-macros = { path = "quantum-link-macros" }

api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ chrono = { workspace = true }
2121
thiserror = { workspace = true }
2222

2323
[dev-dependencies]
24-
insta = { version = "1.43.2" }
24+
insta = { workspace = true }
2525

2626
[features]
2727
keyos = ["rkyv"]

backup-shard/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
1+
# SPDX-FileCopyrightText: © 2025 Foundation Devices, Inc. <[email protected]>
2+
# SPDX-License-Identifier: GPL-3.0-or-later
3+
14
[package]
25
name = "backup-shard"
3-
version = "0.1.0"
6+
version = "0.2.0"
47
edition = "2024"
58
homepage.workspace = true
69

710
[dependencies]
8-
minicbor = { workspace = true, features = ["std", "derive"] }
11+
dcbor = { workspace = true }
912
zeroize = { version = "1.8.1", default-features = false, features = [
1013
"zeroize_derive",
1114
] }
1215
rkyv = { workspace = true, optional = true }
1316

17+
[dev-dependencies]
18+
insta = { workspace = true }
19+
1420
[features]
1521
keyos = ["rkyv"]

0 commit comments

Comments
 (0)