mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 01:47:55 +00:00
bc53b9a03a
* Change copyright year to 2023 from 2022 * Fix incorrect update of copyright year * Remove years from copy right header * Fix remaining files * Fix typo in a header and remove update-copyright.sh
66 lines
1.8 KiB
Rust
Executable File
66 lines
1.8 KiB
Rust
Executable File
// This file is part of Substrate.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
pub extern crate alloc;
|
|
|
|
pub use alloc::boxed;
|
|
pub use alloc::rc;
|
|
pub use alloc::sync;
|
|
pub use alloc::vec;
|
|
pub use core::any;
|
|
pub use core::cell;
|
|
pub use core::clone;
|
|
pub use core::cmp;
|
|
pub use core::convert;
|
|
pub use core::default;
|
|
pub use core::fmt;
|
|
pub use core::hash;
|
|
pub use core::iter;
|
|
pub use core::marker;
|
|
pub use core::mem;
|
|
pub use core::num;
|
|
pub use core::ops;
|
|
pub use core::ptr;
|
|
pub use core::result;
|
|
pub use core::slice;
|
|
// Allow interpreting vectors of bytes as strings, but not constructing them.
|
|
pub use core::str;
|
|
pub use core::time;
|
|
// We are trying to avoid certain things here, such as `core::string`
|
|
// (if you need `String` you are probably doing something wrong, since
|
|
// runtime doesn't require anything human readable).
|
|
|
|
pub mod collections {
|
|
pub use alloc::collections::btree_map;
|
|
pub use alloc::collections::btree_set;
|
|
pub use alloc::collections::vec_deque;
|
|
}
|
|
|
|
pub mod borrow {
|
|
pub use core::borrow::*;
|
|
pub use alloc::borrow::*;
|
|
}
|
|
|
|
pub mod thread {
|
|
/// Returns if the current thread is panicking.
|
|
///
|
|
/// In wasm this always returns `false`, as we abort on any panic.
|
|
pub fn panicking() -> bool {
|
|
false
|
|
}
|
|
}
|