feat: initialize Kurdistan SDK - independent fork of Polkadot SDK

This commit is contained in:
2025-12-13 15:44:15 +03:00
commit e4778b4576
6838 changed files with 1847450 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
# Find all Cargo.toml files excluding the root,umbrella/Cargo.toml,
# substrate/frame/contracts/fixtures/build/Cargo.toml,
# substrate/frame/contracts/fixtures/contracts/common/Cargo.toml
find . -name "Cargo.toml" \
! -path "./Cargo.toml" \
! -path "./umbrella/Cargo.toml" \
! -path "./substrate/frame/contracts/fixtures/build/Cargo.toml" \
! -path "./substrate/frame/contracts/fixtures/contracts/common/Cargo.toml"| while read -r file; do
echo "Processing $file..."
# Find and replace path dependencies with "workspace = true"
awk '
BEGIN { in_section = 0 }
/^\[dependencies\]/ { in_section = 1; print; next }
/^\[dev-dependencies\]/ { in_section = 2; print; next }
/^\[.*\]/ { in_section = 0; print; next }
{
if (in_section == 1 || in_section == 2) {
if ($0 ~ /path *= *".*"/) {
gsub(/path *= *".*"/, "workspace = true")
}
}
print
}
' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
done
echo "All applicable Cargo.toml files updated."