Skip to content

Commit

Permalink
docs(crates-io): correct the branch of sp-runtime-intefaces
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Jan 9, 2024
1 parent ddbafb8 commit c815950
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions utils/crates-io/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mod gmeta_codegen {
use super::trim_dev_dep;
use toml_edit::Document;

/// Patch the manifest of gmetadata.
/// Patch the manifest of gmeta.
pub fn patch(manifest: &mut Document) {
trim_dev_dep("gstd", manifest);
trim_dev_dep("gmeta", manifest);
Expand All @@ -128,7 +128,7 @@ mod runtime_interface {
use crate::SP_WASM_INTERFACE_VERSION;
use toml_edit::Document;

/// Convert the wasmi module to the crates-io version.
/// Patch sp-runtime-interface.
pub fn patch(manifest: &mut Document) {
let Some(wi) = manifest["dependencies"]["sp-runtime-interface"].as_table_mut() else {
return;
Expand All @@ -143,7 +143,7 @@ mod runtime_interface {
mod sandbox {
use toml_edit::Document;

/// Convert the wasmi module to the crates-io version.
/// Replace the wasmi module to the crates-io version.
pub fn patch(manifest: &mut Document) {
let Some(wasmi) = manifest["dependencies"]["wasmi"].as_inline_table_mut() else {
return;
Expand All @@ -159,7 +159,7 @@ mod sandbox {
mod sandbox_host {
use toml_edit::Document;

/// Convert the wasmi module to the crates-io version.
/// Replace the wasmi module to the crates-io version.
pub fn patch(manifest: &mut Document) {
let Some(wasmi) = manifest["dependencies"]["wasmi"].as_inline_table_mut() else {
return;
Expand All @@ -178,7 +178,7 @@ mod substrate {
/// Patch the substrate packages in the manifest of workspace.
///
/// NOTE: The packages inside of this function are located at
/// <https://github.com/gear-tech/substrate/tree/cl/1.0.3-crates-io>.
/// <https://github.com/gear-tech/substrate/tree/cl/v1.0.x-crates-io>.
pub fn patch_workspace(name: &str, table: &mut InlineTable) {
match name {
// sp-allocator is outdated on crates.io, last
Expand Down

0 comments on commit c815950

Please sign in to comment.