Skip to content

Commit

Permalink
Specify explicit version for cargo publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenStueber committed May 29, 2024
1 parent 9e85171 commit 8975b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ num-rational = {version = "0.4", default-features = false}
scale-info = {version = "2.1.1", default-features = false, features = ["derive"]}

# Substrate
sp-std = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false, optional = true }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false, optional = true }
sp-std = { version = "8.0.0", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false }
sp-runtime = { version = "24.0.0", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false, optional = true }
sp-io = { version = "23.0.0", git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.1.0", default-features = false, optional = true }

[features]
default = [ "offchain", "std" ]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ extern crate alloc;
mod lib {
#[cfg(not(feature = "std"))]
pub use alloc::string::{FromUtf8Error, String, ToString};

#[cfg(feature = "std")]
pub use std::string::{FromUtf8Error, String, ToString};
}
Expand Down

0 comments on commit 8975b64

Please sign in to comment.