-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore leading
::
for crate access (#152)
* Restore leading `::` for crate access * Fmt * Fix it for real * Fmt * Restore changes * Revert test changes * Add ui test for `#![no_implicit_prelude]` * Add ui test for `#![no_implicit_prelude]` * Bump versions * Update CHANGELOG
- Loading branch information
Showing
6 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "scale-info" | ||
version = "2.1.0" | ||
version = "2.1.1" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.56.1" | ||
|
@@ -17,7 +17,7 @@ include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"] | |
[dependencies] | ||
bitvec = { version = "1", default-features = false, features = ["alloc"], optional = true } | ||
cfg-if = "1.0" | ||
scale-info-derive = { version = "2.1.0", path = "derive", default-features = false, optional = true } | ||
scale-info-derive = { version = "2.1.1", path = "derive", default-features = false, optional = true } | ||
serde = { version = "1", default-features = false, optional = true, features = ["derive", "alloc"] } | ||
derive_more = { version = "0.99.1", default-features = false, features = ["from"] } | ||
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "scale-info-derive" | ||
version = "2.1.0" | ||
version = "2.1.1" | ||
authors = [ | ||
"Parity Technologies <[email protected]>", | ||
"Centrality Developers <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![no_implicit_prelude] | ||
|
||
use ::info::{self as scale_info}; | ||
use scale_info::TypeInfo; | ||
|
||
#[allow(dead_code)] | ||
#[derive(TypeInfo)] | ||
struct S { a: bool } | ||
|
||
fn assert_type_info<T: TypeInfo + 'static>() {} | ||
|
||
fn main() { | ||
assert_type_info::<S>(); | ||
} |