Skip to content

Commit a76361e

Browse files
committed
Fix no_std issue for dstack-sdk-types
1 parent 6e2150f commit a76361e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ resolver = "2"
5050
# Internal dependencies
5151
ra-rpc = { path = "ra-rpc", default-features = false }
5252
ra-tls = { path = "ra-tls" }
53-
dstack-sdk-types = { path = "sdk/rust/types" }
53+
dstack-sdk-types = { path = "sdk/rust/types", default-features = false }
5454
dstack-gateway-rpc = { path = "gateway/rpc" }
5555
dstack-kms-rpc = { path = "kms/rpc" }
5656
dstack-guest-agent-rpc = { path = "guest-agent/rpc" }
@@ -95,7 +95,7 @@ sd-notify = "0.4.5"
9595
jemallocator = "0.5.4"
9696

9797
# Serialization/Parsing
98-
borsh = { version = "1.5.7", features = ["derive"] }
98+
borsh = { version = "1.5.7", default-features = false, features = ["derive"] }
9999
bon = { version = "3.4.0", default-features = false }
100100
base64 = "0.22.1"
101101
hex = { version = "0.4.3", default-features = false }

sdk/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ alloy = { workspace = true, features = ["signers", "signer-local"] }
1111
anyhow.workspace = true
1212
dstack-sdk-types.workspace = true
1313
bon.workspace = true
14-
hex.workspace = true
14+
hex = { workspace = true, features = ["std"] }
1515
http.workspace = true
1616
http-client-unix-domain-socket = "0.1.1"
1717
reqwest = { workspace = true, features = ["json"] }

sdk/rust/types/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ std = [
3131
"serde/std",
3232
"serde_json/std",
3333
"sha2/std",
34+
"borsh?/std"
3435
]

0 commit comments

Comments
 (0)