aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml59
1 files changed, 59 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..3fd0273
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,59 @@
+[package]
+name = "imxrt-rt"
+version = "0.1.0"
+edition = "2021"
+license = "MIT OR Apache-2.0"
+repository = "https://github.com/imxrt-rs/imxrt-rt"
+description = "Startup and runtime support for i.MX RT processors."
+categories = [
+ "embedded",
+ "hardware-support",
+ "no-std",
+]
+
+[features]
+device = ["cortex-m-rt/device"]
+
+[dependencies]
+cfg-if = "1.0"
+
+[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dependencies]
+cortex-m-rt = { version = "=0.7.1" }
+
+[target.'cfg(all(target_arch = "arm", target_os = "none"))'.dev-dependencies]
+board = { path = "board" }
+cortex-m-rtic = { version = "1.0" }
+
+[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dev-dependencies]
+goblin = "0.5"
+
+[[example]]
+name = "blink-rtic"
+required-features = ["board/rtic"]
+
+[workspace]
+members = [
+ "board",
+]
+
+[profile.dev]
+opt-level = 0
+lto = "off"
+panic = "abort"
+
+[profile.release]
+opt-level = "s"
+lto = "fat"
+panic = "abort"
+codegen-units = 1
+
+[profile.dev.build-override]
+opt-level = 0
+codegen-units = 256
+
+[profile.release.build-override]
+opt-level = 0
+codegen-units = 256
+
+[patch.crates-io.imxrt-ral]
+git = "https://github.com/mciantyre/imxrt-ral"