Skip to content

Commit

Permalink
use [patch] sections to specify serde_json dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tvsfx committed Oct 22, 2024
1 parent 4d3e1af commit ffd7622
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 55 deletions.
3 changes: 3 additions & 0 deletions api-model/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ repository = "https://github.com/fortanix/salmiac"
[dependencies]
hex = "0.4"
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = "1.0"

[patch.crates-io]
serde_json = { git = "https://github.com/fortanix/serde-json.git", branch = "base64_bytes" }
25 changes: 4 additions & 21 deletions tools/container-converter/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion tools/container-converter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ log = "0.4"
nix = { version = "0.26.1", features = ["user", "fs"] }
rand = "0.8.4"
serde = { version = "1.0.127", features = ["derive"] }
serde_json = { git = "https://github.com/fortanix/serde-json.git", branch = "base64_bytes" }
serde_json = "1.0"
shiplift = { git = "https://github.com/fortanix/shiplift.git" }
sys-mount = "1.5.1"
tar = { git = "https://github.com/alexcrichton/tar-rs" }
Expand All @@ -32,3 +32,6 @@ toml = "0.5.8"

[dev-dependencies]
chrono = "0.4.22"

[patch.crates-io]
serde_json = { git = "https://github.com/fortanix/serde-json.git", branch = "base64_bytes" }
41 changes: 9 additions & 32 deletions vsock-proxy/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vsock-proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@ members = [
"parent",
"enclave",
]

[workspace.dependencies]
serde_json = "1.0"

[patch.crates-io]
serde_json = { git = "https://github.com/fortanix/serde-json.git", branch = "base64_bytes" }
2 changes: 1 addition & 1 deletion vsock-proxy/enclave/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rtnetlink = "0.8.0"
sdkms = { version = "0.2.1", default-features = false, features = ["hyper-native-tls"] }
serde = { version = "1.0.127", features = ["derive"] }
serde_cbor = "0.11.2"
serde_json = { git = "https://github.com/fortanix/serde-json.git", branch = "base64_bytes" }
serde_json = { workspace = true }
shared = { path = "../shared" }
sysinfo = "0.29.8"
tokio = { version = "1.0.1", features = ["macros", "rt", "rt-multi-thread", "io-util"] }
Expand Down

0 comments on commit ffd7622

Please sign in to comment.