aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
authorGravatar Jonas Schievink <jonasschievink@gmail.com> 2019-11-21 23:04:40 +0100
committerGravatar Jonas Schievink <jonasschievink@gmail.com> 2019-11-21 23:04:40 +0100
commitc147d2f8f66b2100aee34684f5f34dcc21679708 (patch)
tree3ba2ad8463aa31b68a93661258ee3de8d820e046 /cortex-m-rt
parentb475a86e128a276318811465436a21ec91e8ab62 (diff)
downloadcortex-m-c147d2f8f66b2100aee34684f5f34dcc21679708.tar.gz
cortex-m-c147d2f8f66b2100aee34684f5f34dcc21679708.tar.zst
cortex-m-c147d2f8f66b2100aee34684f5f34dcc21679708.zip
Remove Remaining Rand Remnants
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/Cargo.toml5
-rw-r--r--cortex-m-rt/ci/script.sh1
-rw-r--r--cortex-m-rt/examples/rand.rs24
3 files changed, 0 insertions, 30 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml
index 09644d0..3b03993 100644
--- a/cortex-m-rt/Cargo.toml
+++ b/cortex-m-rt/Cargo.toml
@@ -24,11 +24,6 @@ cortex-m = "0.6"
panic-halt = "0.2.0"
cortex-m-semihosting = "0.3"
-[dev-dependencies.rand]
-default-features = false
-features = ["small_rng"]
-version = "0.7"
-
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
compiletest_rs = "0.4.0"
diff --git a/cortex-m-rt/ci/script.sh b/cortex-m-rt/ci/script.sh
index cccf5c9..2565628 100644
--- a/cortex-m-rt/ci/script.sh
+++ b/cortex-m-rt/ci/script.sh
@@ -21,7 +21,6 @@ main() {
override-exception
pre_init
qemu
- rand
state
unsafe-default-handler
unsafe-entry
diff --git a/cortex-m-rt/examples/rand.rs b/cortex-m-rt/examples/rand.rs
deleted file mode 100644
index 358868b..0000000
--- a/cortex-m-rt/examples/rand.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-//! Use rand crate to ensure it's configured for no_std compatbility
-
-#![deny(warnings)]
-#![no_main]
-#![no_std]
-
-extern crate cortex_m_rt as rt;
-use rt::entry;
-
-extern crate panic_halt;
-
-extern crate rand;
-use rand::Rng;
-use rand::SeedableRng;
-
-// the program entry point
-#[entry]
-fn main() -> ! {
- let seed: [u8; 16] = [0; 16];
- let mut rng = rand::rngs::SmallRng::from_seed(seed);
- let _ = rng.gen::<u32>();
-
- loop {}
-}