Skip to content

Commit 0bbfb94

Browse files
committed
Switch to canon-json
canon-json provides a serde_json Formatter to serialize as RFC 8785 canonical JSON. It's a drop in replacement for olpc-cjson. Signed-off-by: Etienne Champetier <[email protected]>
1 parent 62ff217 commit 0bbfb94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ keywords = ["oci", "opencontainers", "docker", "podman", "containers"]
1010
[dependencies]
1111
camino = "1.0.4"
1212
chrono = "0.4.19"
13-
olpc-cjson = "0.1.1"
1413
cap-std-ext = "4.0"
1514
flate2 = { features = ["zlib"], default-features = false, version = "1.0.20" }
1615
hex = "0.4.3"
@@ -21,6 +20,7 @@ tar = "0.4.38"
2120
thiserror = "2"
2221
oci-spec = "0.7.0"
2322
zstd = { version = "0.13.2", optional = true }
23+
canon-json = "0.2.0"
2424

2525
[dev-dependencies]
2626
anyhow = "1.0.89"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![doc = include_str!("../README.md")]
22

3+
use canon_json::CanonicalFormatter;
34
use cap_std::fs::{Dir, DirBuilderExt};
45
use cap_std_ext::cap_tempfile;
56
use cap_std_ext::dirext::CapStdExtDirExt;
@@ -9,7 +10,6 @@ use oci_spec::image::{
910
self as oci_image, Descriptor, Digest, ImageConfiguration, ImageIndex, ImageManifest,
1011
Sha256Digest,
1112
};
12-
use olpc_cjson::CanonicalFormatter;
1313
use openssl::hash::{Hasher, MessageDigest};
1414
use serde::{Deserialize, Serialize};
1515
use std::collections::{HashMap, HashSet};

0 commit comments

Comments
 (0)