Split off TypeId so as not to pull in sr-io (#3740)

* Add type-id

* Builds with std now.

* Fix for cargo

* Remove unneeded stuff

* Move TypeId.
This commit is contained in:
Gavin Wood
2019-10-03 12:37:37 +02:00
committed by GitHub
parent 18fa1d15ce
commit 251d33cb74
3 changed files with 8 additions and 9 deletions
+5
View File
@@ -219,3 +219,8 @@ impl codec::Decode for NeverNativeValue {
}
}
/// Provide a simple 4 byte identifier for a type.
pub trait TypeId {
/// Simple 4 byte identifier.
const TYPE_ID: [u8; 4];
}