Skip to content

Commit 0b68707

Browse files
authored
Merge pull request #785 from Dstack-TEE/chore/decouple-rust-sdk-workspace
chore: decouple Rust SDK from dstack core workspace
2 parents daea817 + 8861cb2 commit 0b68707

12 files changed

Lines changed: 4777 additions & 1359 deletions

File tree

.github/scripts/cargo-publish-idempotent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111

1212
crate=${1:?missing crate name}
1313

14-
if output=$(cargo publish --manifest-path dstack/Cargo.toml -p "$crate" 2>&1); then
14+
if output=$(cargo publish --manifest-path sdk/rust/Cargo.toml -p "$crate" 2>&1); then
1515
echo "$output"
1616
exit 0
1717
fi

.github/workflows/rust-sdk-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
pkg_version("sdk/rust/types/Cargo.toml")),
5454
("sdk/rust/Cargo.toml [package.version]",
5555
pkg_version("sdk/rust/Cargo.toml")),
56-
("dstack/Cargo.toml [workspace.dependencies.dstack-sdk-types.version]",
57-
ws_dep_version("dstack/Cargo.toml", "dstack-sdk-types")),
56+
("sdk/rust/Cargo.toml [workspace.dependencies.dstack-sdk-types.version]",
57+
ws_dep_version("sdk/rust/Cargo.toml", "dstack-sdk-types")),
5858
]
5959
6060
fail = False
@@ -64,7 +64,7 @@ jobs:
6464
print(f" {'OK ' if ok else 'BAD'} {label}: {got}")
6565
6666
if fail:
67-
print(f"\ntag is dstack-sdk-v{want}; bump all three to {want} before tagging.",
67+
print(f"\ntag is dstack-sdk-v{want}; bump SDK package versions to {want} before tagging.",
6868
file=sys.stderr)
6969
sys.exit(1)
7070
PY

.github/workflows/sdk.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434

3535
- name: Verify WASM compilation
3636
# Ensures SDK types can be used in smart contracts
37-
run: cargo check --manifest-path dstack/Cargo.toml --target=wasm32-unknown-unknown -p dstack-sdk-types
37+
run: cargo check --manifest-path sdk/rust/Cargo.toml --target=wasm32-unknown-unknown -p dstack-sdk-types
3838

3939
- name: Verify no_std compatibility
4040
run: |
41-
cargo test --manifest-path dstack/Cargo.toml -p dstack-sdk-types --test no_std_test --no-default-features
42-
cargo check --manifest-path dstack/Cargo.toml -p no_std_check --target thumbv6m-none-eabi
41+
cargo test --manifest-path sdk/rust/Cargo.toml -p dstack-sdk-types --test no_std_test --no-default-features
42+
cargo check --manifest-path sdk/rust/Cargo.toml -p no_std_check --target thumbv6m-none-eabi

0 commit comments

Comments
 (0)