aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-06-06 09:00:08 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-06-06 09:00:08 +0000
commitddebec2bd0544a0a6c377059390a454a8943e0a8 (patch)
tree6a7e649a1a122173d454702f89864e88feecdb81
parent10d6e250af596d24229c6e7e8221a766975e8b37 (diff)
parentfa185a638ee4662e24f879e1365fa942343f57b7 (diff)
downloadcortex-m-ddebec2bd0544a0a6c377059390a454a8943e0a8.tar.gz
cortex-m-ddebec2bd0544a0a6c377059390a454a8943e0a8.tar.zst
cortex-m-ddebec2bd0544a0a6c377059390a454a8943e0a8.zip
Merge #140
140: Cargo.toml: Add `links = "cortex-m"` r=therealprof a=jonas-schievink This prevents linking multiple versions of `cortex-m` together, which would be unsound. Currently it uses a `#[no_mangle]` static for this, which isn't always reliable. Fixes #137 Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 01d5911..9fa65b6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,6 +12,7 @@ name = "cortex-m"
readme = "README.md"
repository = "https://github.com/japaric/cortex-m"
version = "0.6.0"
+links = "cortex-m" # prevent multiple versions of this crate to be linked together
[dependencies]
aligned = "0.3.1"