Cargo.toml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. [package]
  2. authors = ["Several and Joao carvalho"]
  3. edition = "2018"
  4. readme = "README.md"
  5. name = "rp2040-project-template"
  6. version = "0.1.0"
  7. resolver = "2"
  8. [dependencies]
  9. cortex-m = "0.7.3"
  10. cortex-m-rt = "0.7.0"
  11. embedded-hal = { version = "0.2.5", features=["unproven"] }
  12. embedded-time = "0.12.0"
  13. # jnc
  14. usb-device = "0.2.8"
  15. usbd-serial = "0.1.1"
  16. usbd-hid = "0.5.1"
  17. futures = { version = "0.3", default-features = false, optional = true }
  18. # jnc commnet pico-probe
  19. defmt = "0.3.0"
  20. defmt-rtt = "0.3.1"
  21. panic-probe = { version = "0.3.0", features = ["print-defmt"] }
  22. # We're using a Pico by default on this template
  23. rp-pico = "0.2.0"
  24. # but you can use any BSP. Uncomment this to use the pro_micro_rp2040 BSP instead
  25. # sparkfun-pro-micro-rp2040 = "0.1.0"
  26. # If you're not going to use a Board Support Package you'll need these:
  27. rp2040-hal = { version="0.3.0", features=["rt"] }
  28. # rp2040-hal = { path = "../rp-hal-main/rp2040-hal", version = "0.4.0" }
  29. rp2040-boot2 = {version="0.2.0", optional = true }
  30. # [dev-dependencies]
  31. panic-halt= "0.2.0"
  32. # embedded-hal ="0.2.5"
  33. # cortex-m-rtic = "0.6.0-rc.4"
  34. # nb = "1.0"
  35. # heapless = "0.7.9"
  36. # jnc commented for test pico-probe
  37. # defmt = "0.3.0"
  38. # defmt-rtt = "0.3.0"
  39. # cortex-m-rtic = "0.6.0-rc.4"
  40. cortex-m-rtic = "1.0.0"
  41. # static-box = "0.2.0"
  42. # cargo build/run
  43. [profile.dev]
  44. codegen-units = 1
  45. debug = 2
  46. debug-assertions = true
  47. incremental = false
  48. opt-level = 3
  49. overflow-checks = true
  50. # cargo build/run --release
  51. [profile.release]
  52. codegen-units = 1
  53. debug = 2
  54. debug-assertions = false
  55. incremental = false
  56. lto = 'fat'
  57. opt-level = 3
  58. overflow-checks = false
  59. # do not optimize proc-macro crates = faster builds from scratch
  60. [profile.dev.build-override]
  61. codegen-units = 8
  62. debug = false
  63. debug-assertions = false
  64. opt-level = 0
  65. overflow-checks = false
  66. [profile.release.build-override]
  67. codegen-units = 8
  68. debug = false
  69. debug-assertions = false
  70. opt-level = 0
  71. overflow-checks = false
  72. # cargo test
  73. [profile.test]
  74. codegen-units = 1
  75. debug = 2
  76. debug-assertions = true
  77. incremental = false
  78. opt-level = 3
  79. overflow-checks = true
  80. # cargo test --release
  81. [profile.bench]
  82. codegen-units = 1
  83. debug = 2
  84. debug-assertions = false
  85. incremental = false
  86. lto = 'fat'
  87. opt-level = 3