mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-27 14:52:10 +00:00
build(core/rust): disable nightly-only features
When we need them, we will re-enable.
This commit is contained in:
parent
155fc7ac67
commit
e015bc0856
14
core/embed/rust/Cargo.lock
generated
14
core/embed/rust/Cargo.lock
generated
@ -60,12 +60,6 @@ version = "1.2.1"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cc"
|
|
||||||
version = "1.0.67"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cexpr"
|
name = "cexpr"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
@ -270,12 +264,6 @@ version = "1.0.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "42a568c8f2cd051a4d283bd6eb0343ac214c1b0f1ac19f93e1175b2dee38c73d"
|
checksum = "42a568c8f2cd051a4d283bd6eb0343ac214c1b0f1ac19f93e1175b2dee38c73d"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "staticvec"
|
|
||||||
version = "0.10.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "3c87f4be0fd89694157f3814ca88715ad8ba6010c453b1e89ca264aee04d70b9"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "strsim"
|
name = "strsim"
|
||||||
version = "0.8.0"
|
version = "0.8.0"
|
||||||
@ -314,10 +302,8 @@ name = "trezor_lib"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bindgen",
|
"bindgen",
|
||||||
"cc",
|
|
||||||
"cstr_core",
|
"cstr_core",
|
||||||
"cty",
|
"cty",
|
||||||
"staticvec",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -22,10 +22,6 @@ codegen-units = 1
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
cty = "0.2.1"
|
cty = "0.2.1"
|
||||||
|
|
||||||
[dependencies.staticvec]
|
|
||||||
version = "0.10.5"
|
|
||||||
default_features = false
|
|
||||||
|
|
||||||
[dependencies.cstr_core]
|
[dependencies.cstr_core]
|
||||||
version = "0.2.2"
|
version = "0.2.2"
|
||||||
default_features = false
|
default_features = false
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
nightly
|
|
||||||
|
|
@ -1,8 +1,4 @@
|
|||||||
#![cfg_attr(not(test), no_std)]
|
#![cfg_attr(not(test), no_std)]
|
||||||
#![feature(never_type)]
|
|
||||||
#![feature(unsize)]
|
|
||||||
#![feature(coerce_unsized)]
|
|
||||||
#![feature(dispatch_from_dyn)]
|
|
||||||
#![deny(clippy::all)]
|
#![deny(clippy::all)]
|
||||||
#![deny(unsafe_op_in_unsafe_fn)]
|
#![deny(unsafe_op_in_unsafe_fn)]
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
use core::{
|
use core::{
|
||||||
alloc::Layout,
|
alloc::Layout,
|
||||||
marker::Unsize,
|
ops::Deref,
|
||||||
ops::{CoerceUnsized, Deref, DispatchFromDyn},
|
|
||||||
ptr::{self, NonNull},
|
ptr::{self, NonNull},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -13,9 +12,6 @@ use super::ffi;
|
|||||||
/// `Copy` and `Clone`, we avoid doing this until proven necessary.
|
/// `Copy` and `Clone`, we avoid doing this until proven necessary.
|
||||||
pub struct Gc<T: ?Sized>(NonNull<T>);
|
pub struct Gc<T: ?Sized>(NonNull<T>);
|
||||||
|
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Gc<U>> for Gc<T> {}
|
|
||||||
impl<T: ?Sized + Unsize<U>, U: ?Sized> DispatchFromDyn<Gc<U>> for Gc<T> {}
|
|
||||||
|
|
||||||
impl<T> Gc<T> {
|
impl<T> Gc<T> {
|
||||||
/// Allocate memory on the heap managed by the MicroPython garbage collector
|
/// Allocate memory on the heap managed by the MicroPython garbage collector
|
||||||
/// and then place `v` into it. `v` will _not_ get its destructor called.
|
/// and then place `v` into it. `v` will _not_ get its destructor called.
|
||||||
|
Loading…
Reference in New Issue
Block a user