From e8029a776196ab2339eb47b6be4cc3ce4b041967 Mon Sep 17 00:00:00 2001
From: Lulu <morgan@parity.io>
Date: Thu, 9 Nov 2023 21:17:48 +0100
Subject: [PATCH] Don't publish frame and deps (#2260)

---
 substrate/bin/minimal/runtime/Cargo.toml        | 1 +
 substrate/frame/Cargo.toml                      | 1 +
 substrate/frame/examples/Cargo.toml             | 1 +
 substrate/frame/examples/frame-crate/Cargo.toml | 1 +
 4 files changed, 4 insertions(+)

diff --git a/substrate/bin/minimal/runtime/Cargo.toml b/substrate/bin/minimal/runtime/Cargo.toml
index e7e67ce889a..85d56d0638a 100644
--- a/substrate/bin/minimal/runtime/Cargo.toml
+++ b/substrate/bin/minimal/runtime/Cargo.toml
@@ -6,6 +6,7 @@ description = "A minimal Substrate example runtime"
 edition.workspace = true
 repository.workspace = true
 license.workspace = true
+publish = false
 
 [dependencies]
 parity-scale-codec = { version = "3.0.0", default-features = false }
diff --git a/substrate/frame/Cargo.toml b/substrate/frame/Cargo.toml
index f7b35aba358..9f2f73ffb15 100644
--- a/substrate/frame/Cargo.toml
+++ b/substrate/frame/Cargo.toml
@@ -7,6 +7,7 @@ license = "Apache-2.0"
 homepage = "paritytech.github.io"
 repository.workspace = true
 description = "The single package to get you started with building frame pallets and runtimes"
+publish = false
 
 [package.metadata.docs.rs]
 # enable `experimental` feature for docs
diff --git a/substrate/frame/examples/Cargo.toml b/substrate/frame/examples/Cargo.toml
index 98c4e51889b..1b215022715 100644
--- a/substrate/frame/examples/Cargo.toml
+++ b/substrate/frame/examples/Cargo.toml
@@ -7,6 +7,7 @@ license = "Apache-2.0"
 homepage = "https://substrate.io"
 repository.workspace = true
 description = "The single package with examples of various types of FRAME pallets"
+publish = false
 
 [package.metadata.docs.rs]
 targets = ["x86_64-unknown-linux-gnu"]
diff --git a/substrate/frame/examples/frame-crate/Cargo.toml b/substrate/frame/examples/frame-crate/Cargo.toml
index 854ee8b55c8..ceb8c7bfb81 100644
--- a/substrate/frame/examples/frame-crate/Cargo.toml
+++ b/substrate/frame/examples/frame-crate/Cargo.toml
@@ -7,6 +7,7 @@ license = "MIT-0"
 homepage = "https://substrate.io"
 repository.workspace = true
 description = "FRAME example pallet with umbrella crate"
+publish = false
 
 [package.metadata.docs.rs]
 targets = ["x86_64-unknown-linux-gnu"]
-- 
GitLab